-
Notifications
You must be signed in to change notification settings - Fork 10.3k
source-building .NET 7 fails if nodejs is installed on the machine #42378
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
Comments
@dotnet/aspnet-build can you please help triage/route this? |
I'm not sure of the best way to handle this nor now widespread a problem it's likely to be. It seems like the main issue relates to our @omajid what's happening here is Npm.Common.targets updates packages.json files to use versions aligned w/ the current build. This works for me locally but I have Separately, if you uninstall |
I mean building |
The thing that confuses me is that on the same machine, I can't build aspnetcore via source-build but I can build it standalone. The nodejs version on my machine is the same for both builds. |
@SteveSandersonMS @javiercn do you know anything about why this may be happening? |
@wtgodbe very likely node is installed on the machine but yarn is not.
|
@omajid did Javier's suggestion fix your issue? |
Hi @omajid. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
Describe the Bug
I am trying to build .NET 7 (source-build) from the installer's main branch.
The build fails if nodejs is installed on my machine.
It looks like there's some javascript code that deals with versions, and it sees a
7.0.0-dev
version string and simply fails.The build works fine if I uninstall nodejs.
I could not reproduce this error just building aspnetcore repo by itself.
Steps to Reproduce
Install nodejs, build .NET installer (source-build)
Inside a failing build, I can reproduce using:
Other Information
The text was updated successfully, but these errors were encountered: