-
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
MSBuild.exe ENOENT - uses VS2019 instead of VS2017 #1747
Comments
|
same error with |
uninstalling vs 2019 as aworkaround worked for me but it doesnt solve the problem |
This stackoverflow article is what helped me get over this, without having to uninstall VS 2019. I already had python 2.7 installed on my system, so the only thing I had to do in adition was to install Visual C++ Build tools from here, https://go.microsoft.com/fwlink/?LinkId=691126, and then configure npm to use python 2.7 and VS2015
After that, npm install run just fine. |
|
node-gyp v5.0.0 is out with Visual Studio 2019 support. It's not yet integrated into npm so it has to be installed manually. This should do it (only need to be run once): Windows Command Prompt
Powershell
That is, install node-gyp globally and make the npm config variable How to undo this after node-gyp is integrated into npmnpm uninstall --global node-gyp
npm config delete node_gyp
|
npm config set msvs_version 2017 |
npm install --global --production windows-build-tools --vs2017 |
In my case the error was caused by I solved it by updating the version of |
Guys i have was facing this issue for an entire day at my work, just now solved by just copy pasting the MSBuild.exe file in C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin to C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\15.0\Bin. I tried all the suggested methods in this thread none worked. If anyone happened to face this issue straight away use npm install --global --production windows-build-tools --vs2019 or --vs2017 . |
I have also the following errors.
In my computer, the location of |
v3.8.0 is too old vs. https://github.com/nodejs/node-gyp/releases. |
@cclauss Thanks, I will try to upgrade |
Anyone please resolve my errors: gyp ERR! UNCAUGHT EXCEPTION npm ERR! code ELIFECYCLE |
https://www.npmjs.com/package/fsevents only runs on macOS so please do not try to install it on Windows. |
I know it is closed but maybe still helpful for people that come here (like me) via a google search. |
If you are using "node-sass", upgrade it to version 5.0.0, make sure that you have build tools 2017 and Python 3 installed, and issue these commands prior to npm install |
Verbose output (from npm or node-gyp):
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\
does not contain MSBuild.exe, butC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\
does. Why does it use 2019? How can I configure node-gyp's MSBuild path?The text was updated successfully, but these errors were encountered: