node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Is there a way to make it work with Visual Studio 2015

Open koistya opened this issue 11 years ago • 22 comments

remote:   File "D:\Program Files (x86)\npm\1.4.28\node_modules\npm\node_modules\node-gyp\g
yp\pylib\gyp\MSVSVersion.py", line 402, in SelectVisualStudioVersion
remote:     versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
remote: KeyError: '14.0'
remote: gypnpm ERR! [email protected] install: `node-gyp rebuild`
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] install script.
remote: npm ERR! This is most likely a problem with the contextify package,
remote: npm ERR! not with npm itself.
remote: npm ERR! Tell the author that this fails on your system:
remote: npm ERR!     node-gyp rebuild
remote: npm ERR! You can get their info via:
remote: npm ERR!     npm owner ls contextify
remote: npm ERR! There is likely additional logging output above.
remote:
remote: npm ERR! System Windows_NT 6.2.9200
remote: npm ERR! command "D:\\Program Files (x86)\\nodejs\\0.10.32\\node.exe" "D:\\Program
 Files (x86)\\npm\\1.4.28\\node_modules\\npm\\bin\\npm-cli.js" "install" "--msvs-version=14.0"
remote: npm ERR! cwd D:\home\site\wwwroot
remote: npm ERR! node -v v0.10.32
remote: npm ERR! npm -v 1.4.28
remote: npm ERR! code ELIFECYCLE

koistya avatar Dec 27 '14 23:12 koistya

To get this working we'll need to upgrade gyp to include https://code.google.com/p/gyp/source/detail?r=2013

springmeyer avatar Jan 14 '15 16:01 springmeyer

Yep just tried with VS2015 as well - would love to see support for it.

Globegitter avatar Jan 30 '15 12:01 Globegitter

+1

ru-sh avatar Jan 31 '15 11:01 ru-sh

+1

domderen avatar Mar 30 '15 20:03 domderen

+1

tonidy avatar May 13 '15 11:05 tonidy

+1

vicentedealencar avatar May 19 '15 01:05 vicentedealencar

+1 - this is blocking a few teams working on building NPM backed WUP apps for Win10

toddpi314 avatar May 19 '15 14:05 toddpi314

+1

voku avatar May 19 '15 15:05 voku

+1

Dmitra avatar May 20 '15 08:05 Dmitra

So, it says pretty clearly in the docs that you have to have VS C++ 2012/2013 installed. https://github.com/TooTallNate/node-gyp#installation

After doing this, I was able to build in VS2015 just fine.

toddpi314 avatar May 21 '15 02:05 toddpi314

I experience this issue having only VS2012/13 installed The issue appeared after removing VS2010. That was done intentionally, because older VS versions doesn't support some modern features to build https://www.npmjs.com/package/sharp

libcpmt lib missing

Dmitra avatar May 21 '15 07:05 Dmitra

Please try node-gyp v2.0.0, which updated gyp to include MSVS 2015 support.

TooTallNate avatar May 24 '15 22:05 TooTallNate

not sure about VS2015 installed alone, but for VS2012/13 on Windows8.1 the issue remains. As soon as nodejs installation doesn't include node-gyp 2.0.0 yet, I replaced old version with 2.0 manually. But the issue is still there. node-gyp2

Dmitra avatar May 29 '15 06:05 Dmitra

thank you very much, the issue is gone with VS2015 installation

Dmitra avatar May 30 '15 11:05 Dmitra

:+1: libuv is also updated to build with VS2015 in v1.6.0+ https://github.com/libuv/libuv/releases/tag/v1.6.0

ghost avatar Jun 06 '15 21:06 ghost

I'm trying to install the iron-meteor/iron-cli package, and I'm getting the same error as Dmitra. I think the problem might be that it's trying to use an old version of node-gyp, despite the fact that I do have V2 installed.(verified with npm list -g node-gyp). Referring to the highlighted node-gyp version in Dmitra's screen grab - it says V1.0.3 for me in my log. Any ideas why it's trying to use an older version of node-gyp?

sisyfus avatar Aug 04 '15 04:08 sisyfus

Fixed! I think the root cause was that I had not updated npm using the proper process for Windows. (along with node-gyp having not been updated initially)

sisyfus avatar Aug 04 '15 05:08 sisyfus

+1

Mirodil avatar Sep 24 '15 15:09 Mirodil

http://www.serverpals.com/blog/building-using-node-gyp-with-visual-studio-express-2015-on-windows-10-pro-x64

Darren-Corbett avatar Oct 29 '15 19:10 Darren-Corbett

+1

karimcitoh avatar Nov 19 '15 13:11 karimcitoh