-
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
MSVS 2017 is recognized as 2015 #1278
Comments
What does |
Hi, it prints out |
@dkrutsko Lines 153 to 160 in 7245415
Try patching that, it should work for you. |
I have the same problem and can't make it work with 2015 either.
|
So how to make node-gyp work with VS2017? |
I have the same problem.
But it still uses 2015 version, while I have 2017 version installed. So I got an error during
BTW |
node-gyp v3.6.2 still doesn't seem to support VS2017. Taking a quick look at the code: https://github.com/nodejs/node-gyp/blob/master/gyp/pylib/gyp/MSVSVersion.py |
That file isn't used with VS 2017, the logic is here. |
Please run
VS2017 needs to have a few components installed to be able to compile C++, otherwise |
I had to choose these under "Individual Components" in the VS2017 installer:
I determined this by, as @joaocgreis said, repeatedly running |
I don't know what exactly the problem has the originator of the ticket mentioning "MSVS 2017, which is recognized as MSVS 2015", but I had a problem that NodeJS scripts call MSBuild which in turn calls build tools from VS 2015, despite I had VS 2017 installed on my machine. The solution for me was to update my *.vcxproj file and specify there explicitly v141 as a PlatformToolset. And of course, MSBuild.exe must be available in the %PATH% from the VS 2017 directory. If the current ticket is about the same problem, please see my answer here as well: https://stackoverflow.com/a/51132581/4807875. |
@dkrutsko Make sure that "msbuild.exe" in your %PATH% targets MSBuild from VS 2017, e.g. |
My guess is that any issues here have probably been resolved with recent releases of node-gyp and the additional Windows work that's gone into it. Please open an new issue if there's something still to be taken care of. |
I was trying to customize the
Platform Toolset
variable for a legacy project I'm building when I ran into a strange problem. Essentially I need to set each Visual Studio version to use the_xp
variant of the toolset. Everything works except forMSVS 2017
, which is recognized asMSVS 2015
(Because it sets it tov140_xp
).Doing
npm config set msvs_version 2017
and
didn't work so I'm wondering if maybe this is something that isn't supported yet?
The text was updated successfully, but these errors were encountered: