-
Notifications
You must be signed in to change notification settings - Fork 26
build: Wrong Windows SDK version #19
Comments
The SDK is set in C:\Program Files (x86)\NodejsUwp\Console\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py. Looks like it's either a problem in _ConfigWindowsTargetPlatformVersion or the SDK isn't in the registry. |
@grownseed does the the folder C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0 exist on your PC? |
@munyirik Thank you for looking into this.
Perhaps more interestingly, I found that In case it is relevant, under I tried to repair Visual Studio as well as reinstalling it, to no effect. I also tried running Visual Studio and creating a new project to see if I could install missing dependencies, but again, no luck there. Please let me know if you need further information. |
Can you try installing the standalone SDK from here - https://dev.windows.com/en-us/downloads/windows-10-sdk? |
It tells me I need to uninstall my current Windows 10 SDK version. Instead, I simply added the keys by hand in the registry under
I also found out that for some reason the Node.js (Chakra) command prompt seems to ignore the I've been able to install Thank you for the pointers, hopefully there ends up being a slightly less cumbersome way of making this work. |
The registry on my box is actually the same as yours before change. Maybe that's not the problem. Maybe the key in your fix is On my box:
Is there any possibility that you had similar GYP_MSVS_VERSION settings before? @grownseed |
@jianchun I double-checked before trying and I did have Regarding the registry keys, is it possible that you have them setup under If the registry keys aren't the issue, the only thing I can think of is that creating a new C++ project in Visual Studio somehow fixed something, though I honestly couldn't tell you why, sorry. |
I checked again, I have |
Interesting, I just checked and that key does exist for me too. I'm not sure why it would be picked up in your case and not mine, I'll keep looking around. |
Reported by @grownseed in #11
Thanks @hgwood but still no luck... I've removed anything Node-related on my system, installed Node.js with Chakra, re-installed Visual Studio Community 2015 with Visual C++, Visual Studio Extensibility Tools Update 1, Windows 10 SDK, Universal Windows App Development Tools, rebooted, added
GYP_MSVS_VERSION 2015
to my environment variables,npm config set python c:\python2.7\python.exe
.where node
:where npm
:where node-gyp
:Attempting to
npm install uwp
:Of particular note is
Wrong Windows SDK version
, it looks like it's pointing to the Windows 8.1 Kit, even though I do have the Windows 10 Kit available. I'm now stuck trying to figure out how to tellnode-gyp
to use the correct kit (if that's actually what's going on here...).The text was updated successfully, but these errors were encountered: