C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Cou ld not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [*******************]
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified.
Has anybody else got this working?
I've installed Visual Studio 2015
I reinstalled Visual Studio 2015
went through the steps on this wiki and ran
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x64
Now i get this
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\CodeAnalysis\Microsoft.CodeAnalysis.targets(214,5): error MSB4175: The task fac
tory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v12.0.dll". Cou
ld not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v12.0.dll' or one of its dependencies.
The system cannot find the file specified.
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Check your GYP_MSVS_VERSION environment variable, and make sure it's set to 2015. This fixed the first problem for me. I couldn't even get so far as to get the v7.1 SDK installed, so never ran Setenv.cmd
Also can you confirm which version of VS 2015 you installed and also confirmed that you have tried to create a C++ project in the IDE.
Thanks
@No9 i have not tried to create a C++ project, is this something i should have done?
Also i don't have VS 2015 installed any more as i found moving to 2013 worked, please see the bottom of: https://github.com/nodejs/node-gyp/issues/679
@Fishbowler I tried that, it didn't work, i ended up uninstalling VS 2015 and installing 2013 instead (see the other issues thread) as these problems are the same
@Jayflux I noticed in the community edition 2015 RTM that I didn't have a c++ env until I did that.
No formal instructions on it though :/
Happy that you have found a way through though.
+1
Anyone have this working? This is happening to me on Windows 8.
Hey @divmgl
What exactly is the error.
Current recommendation is to create a C++ project in the IDE.
@No9 It worked for me, thanks
Creating a new C++ project and installing prompted deps worked for me too.
Windows 8.1, Node 0.12.7, npm 2.11.3, VS 2015 Community
I then tried with Node 4.1.1 but got some compilation errors with node-gyp (similar to this issue). So, I reverted Node to 0.12.7.
Hope will help.
@No9 I apologize that I have not been able to get the exact error. For now I have reinstalled Node 0.12 and Visual Studio 2013 and my issues have been resolved.
No worries @divmgl thanks for getting back.
@Jayflux if your issue is resolved then can we close this off?
I am getting same problem on Windows 10. "warning MSB8003: Could not find WindowsSDKDir variable from the registry." I am using Node js V4.1.1
Got this working on windows 10 & node js v4 & visual studio community 2015. As @No9 stated, you need to launch Visual studio, then do: file > new > project, in the window that opened, select "Model > Visual C++" and in the middle of the window you should see a button "install microsoft C++" or something like that, click on it and it will launch the install process for the C++ & Microsoft SDK.
Once that's done it will work as expected !
I was receiving this error and followed the steps above (@combe and @No9). Thanks!
Can we close this ticket as its a duplicate of https://github.com/nodejs/node-gyp/issues/679
If anyone has issues can you please discuss them there instead
Thanks
Agreed to @ocombe, For me, Windows 10 / VS2015 environment, File-New-Project, Installed-Templates-Visual C++, Install SOMETHING did work.
https://github.com/nodejs/node-gyp/issues/694#issuecomment-187719884 works for me too.
@ocombe Yeah, that worked me! I had to go to File -> New Project -> Templates, then click on the Visual C++ list item, then in the main area of the dialogue box I saw Install Visual C++ 2015 Tools for Windows Desktop. After doing that my npm install worked. It was sha3 that was causing the problem. I'm surprised I haven't broken one of my monitors by now.
@ocombe , that worked me! Thanks!!
Is there anything in the readme that needs to be updated?
Most helpful comment
Got this working on windows 10 & node js v4 & visual studio community 2015. As @No9 stated, you need to launch Visual studio, then do: file > new > project, in the window that opened, select "Model > Visual C++" and in the middle of the window you should see a button "install microsoft C++" or something like that, click on it and it will launch the install process for the C++ & Microsoft SDK.
Once that's done it will work as expected !