-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build script dies when using npm prefix. #3905
Comments
Ok, turns out this is messier than I thought I'm getting a bunch of errors throughout it related to different node modules, the gulpfile, etc. For instance this commit 704a1ee updated the /me keeps on digging |
Alright, pretty much sorted, but a few things:
Because of the 2nd issue I've not created a PR yet, but I have a working branch with my changes, that can be found https://github.com/umbraco/Umbraco-CMS/compare/temp8...aaronpowell:temp8-3905?expand=1 |
Hi @aaronpowell First of all thanks for raising this issue. In V7 the node is downloaded by this powershell script : https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/build/Modules/Umbraco.Build/Get-UmbracoBuildEnv.ps1#L97 Is that what you are after ? |
I haven't looked at v7, only V8 (which is where my branch is from). Is that script published to the NuGet package V8 uses? If so I'll PR that too. |
Just had a look at that file @dawoe and no, it's not the same as is used in v8, v8 using the NuGet package |
Hint: don't look at v7, the build script is entirely different in v8. The build tooling is at https://github.com/umbraco/Umbraco-Build but private at the moment - no idea why, looking at opening it today. As for the versions of Node etc, I remember dealing with them when creating the script but I know little of Node so can totally have messed things up. Welcoming fixes. |
https://github.com/umbraco/Umbraco-Build is now public - happy hacking! |
Thanks @zpqrtbnk I'll get on that when I'm sober 😂 |
Umbraco.Build 0.2.0 with latest Node (from your PR) has been pushed to MyGet. Happy to see a PR to |
Ace - I'll test it locally and then send through a PR. |
PR linked, tested locally using the new |
Fixed in #3938 |
If you're using a tool to manage multiple versions of node.js on a machine (like ps-nvm, nodist or nvm-windows) it's likely that the
build.ps1
script will blow up when trying to rungulp
.The problem is because while the script attempts to create a sandboxed environment to run node.js it doesn't cater to the npm folder prefix.
Instead of doing a global install of
gulp
it would be better to usenpx
to run it from thenode_modules
folder of Belle.Expect a PR soon.
The text was updated successfully, but these errors were encountered: