Skip to content
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

Cannot install on Windows 10 (cannot find WindowsSDKDir variable from the registry) #694

Closed
jasonwilliams opened this issue Aug 18, 2015 · 21 comments
Labels

Comments

@jasonwilliams
Copy link
Contributor

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

@jasonwilliams
Copy link
Contributor Author

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

@Fishbowler
Copy link

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

@No9
Copy link
Member

No9 commented Aug 26, 2015

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

@jasonwilliams
Copy link
Contributor Author

@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: #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

@No9
Copy link
Member

No9 commented Aug 26, 2015

@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.

@jaylinwang
Copy link

+1

@divmgl
Copy link

divmgl commented Sep 15, 2015

Anyone have this working? This is happening to me on Windows 8.

@No9
Copy link
Member

No9 commented Sep 16, 2015

Hey @divmgl
What exactly is the error.
Current recommendation is to create a C++ project in the IDE.

@abumalick
Copy link

@No9 It worked for me, thanks

@vpusher
Copy link

vpusher commented Sep 29, 2015

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.

@divmgl
Copy link

divmgl commented Sep 29, 2015

@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.

@No9
Copy link
Member

No9 commented Sep 29, 2015

No worries @divmgl thanks for getting back.
@Jayflux if your issue is resolved then can we close this off?

@Elicherla01
Copy link

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

@ocombe
Copy link

ocombe commented Oct 3, 2015

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 !

@tttanaka
Copy link

I was receiving this error and followed the steps above (@Combe and @No9). Thanks!

@jasonwilliams
Copy link
Contributor Author

Can we close this ticket as its a duplicate of #679
If anyone has issues can you please discuss them there instead
Thanks

@allenhwkim
Copy link

Agreed to @ocombe, For me, Windows 10 / VS2015 environment, File-New-Project, Installed-Templates-Visual C++, Install SOMETHING did work.

@johnjelinek
Copy link

#694 (comment) works for me too.

@theblang
Copy link

@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.

@danilo-teixeira-2
Copy link

@ocombe , that worked me! Thanks!!

@jasonwilliams
Copy link
Contributor Author

Is there anything in the readme that needs to be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests