-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
node-gyp gets confused by MSBuild on the %PATH% #1653
Comments
bzoz
added a commit
to JaneaSystems/node-gyp
that referenced
this issue
Jan 22, 2019
If node-gyp configure has set up MSBuild location use it instead the one that happens to be first on the PATH. Fixes: nodejs#1653
2 tasks
That was instantaneous, @bzoz ... Awesome! |
refack
pushed a commit
to refack/node-gyp
that referenced
this issue
Feb 13, 2019
If node-gyp configure has set up MSBuild location use it instead the one that happens to be first on the PATH. PR-URL: nodejs#1654 Fixes: nodejs#1653 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: João Reis <reis@janeasystems.com>
In the meantime, I've switched over to using cmake-js, but thanks nonetheless for addressing the issue this quickly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to build build a simple module on msvs 2017, but that failed as long as an old MSBuild
c:\Program Files (x86)\MSBuild\14.0\Bin\amd64
was on the %PATH%
When I removed the path,
node-gyp build
built just fine. It also worked, when I added the latest MSBuild to the %PATH%C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64
So
node-gyp configure
doesn't seem to care if there is an MSBuild.exe on the path, butnode-gyp build
stumbles upon an insufficient MSBuild on the path, although it does work fine if there is none at all on the path.As this took me hours to figure out, I would suggest
node-gyp build
just ignore any MSBuild on the path. (Otherwise, what's the point ofnode-gyp configure
going to great pains to find a suitable MSBuild in the first place?)Judging from stackoverflow and github issues, i'm not the only one stumbling on this. In fact, several other developers had "success" after uninstalling (!!) their old Visual Studios - I'm assuming what cured it was that the uninstall also fixed their %PATH%.
Verbose output:
The text was updated successfully, but these errors were encountered: