-
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
Is node-gyp supposed to work with node 4.0/4.1 #736
Comments
They work but you need VS 2013 or 2015 for the C++11 support. |
Just wanted to say I am having exactly the same problem, and I am using VS 2015 in windows 10 |
@killerjk If you're getting the exact same error then logically you're not using VS 2015. If you have (or have had) older VS versions installed, you may have to set |
Maybe it could be interesting to have a VS detection done by node-gyp module on Windows systems. A kind of pre-build check. |
Thanks @bnoordhuis, that helped. |
@dbrugne It does, but it sometimes detects the wrong version if more than one version is (or has been) installed. |
I don't think this is a Windows-only issue. I'm seeing the same on Linux, in other packages that have dependency on node-gyp, and thus fail, like node-postgres. Here's the error log |
I managed to get this working on Linux, had to set the value of
Hope that helps / sheds some light. |
I get this on mac too and i have python in my path already. |
please help me,I am getting this error D:\Program Files (x86)\Jenkins\jobs\IGHSMobile_test\workspace\node_modules\webpack-dev-server\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild ) npm ERR! contextify@0.1.14 install: |
Do i also need to install VS2015??I have old version 2010 |
I have updated to node v4.1.1, trying to install 'ffi' and get a node-gyp error: |
This is what finally got node-gyp working with node v.4.1.1 for me. (Ubuntu 14.04)
|
Same error for me on Ubuntu 14.04
|
don't install @artem-vladimirov I believe your problem is that bcrypt@0.8.3 doesn't support Node.js v4+. It looks like it's only 0.8.5 that does at the moment so if that's a direct dependency of yours then just upgrade it, if it's a dependency of a dependency then you're going to have to hunt down the maintainer of that package and submit a pull request (or advocate for an existing PR) that updates the bcrypt dependency. |
Exactly the same problem with build using VS2015 on Windows 10 (x64) environment variables have already the suggested values,
npm -v node -v The project is an existing project and it was building before the update to V4.1.2 (this morning) to allow the build of other projects. |
@rvagg Ah, thanks for the heads up on that. Perhaps my issue was simply that I was missing |
Im having issues on Windows 8 when trying to install the latest bufferutil package at the node-gyp build stage. Snippet from log:
|
Still having this issue Windows 10, x64, Node 4.1.2
|
@mwain You need to upgrade, .NET Framework 4.0 ships with VS 2010. @codeuniquely I think in your case node-gyp or msbuild is picking up the wrong VS version. Maybe try the |
@bnoordhuis Thanks, i installed Visual Studio 2015 and that solved it. |
I had already run
I already have environment variables as suggested.
I have Visual Studio Community 2015 Installed, but also have Visual Studio Ultimate 2013 So instead, I swapped the version variables over to using "2013" edition |
I had struggles with installing sqlite3 after updating to Windows 10 and Node 5.0. |
Hi, VS2010 Professional Unfortunately I cannot install VS2015 on my machine as my organization does not have license of the same. Is there a way I can install socket.io package with VS2010. |
@PuneetBaijal You should ask the socket.io people if you want to know for sure but I believe that its native dependencies are all optional. |
Thanks @mstrutt, the export works for me Update: On build process gives error:
|
Here now because I was having node-gyp issues in windows for the second time -- round 1 of this issue was fixed by removing old VS versions, setting msvs_version and python in npm config, and running npm install in a developer console but that didn't work this time. Now I decided to install ubuntu and try to install from there and I'm facing the same issues! I installed g++, make, node-gyp (globally), and build-essential with some npm cache cleans run liberally and I'm having zero luck. Will report back.
|
@tgwhite Note that v8-debug uses node-pre-gyp. That's a different project. |
Is anyone working on a fix?This blocks karma, browserify, angular and a host of popular node modules.For me it is just about pushing me to not use node at all. (new user)Like others I have VS2010 installed on Win7 with npm --version 3.5.2, node --version v5.2.0.
VS2015 is on a subscription basis - this kills open source. We need to use an open-source complier for this module.
|
The following link helped me |
@bnoordhuis using --msvs_version=2015 works for me. Thanks |
Still no fix? |
@hocuspucus Have you tried everything people have posted? I'll close this issue, please file a new one if you still have build trouble. |
In my windows, I installed vs2012, and now I have faced with the same problem. I copy part of errors as follows:
|
Same error. Try to using 2012, 2015 compilers and had no success. error C2059: syntax error: 'using' (..\src\bufferutil.cc) [C:\workfolder\saleswebservice\saleswebservice .git\printer\node_modules\bufferutil\build\bufferutil.vcxproj] |
node-gyp has not supported the version of VS below 2015. |
Correction: node.js (>= 8) does not support VS < 2015. |
@corvinrok aren't you restating what I said except with more words? |
@bnoordhuis oh dang. I misread your post. I read "VS =2015" . I recant. Well done! :) |
Please help me gyp ERR! find VS npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
The current release of this repo is https://github.com/nodejs/node-gyp/releases |
I have tried to build npm modules (socket.io, heapdump and other) on Windows 7 x64 with VS 2010 Express.
Previously with NodeJS 0.12.7 it worked perfectly.
But after upgrading to Node 4.1.0 and NPM 3.0.3 i won't able to compile anything.
After reading lot of tickets and checking my configuration: python, Visual studio, ... trying hundreds of I have the question : is node-gyp supposed to work with node 4.0 ?
The text was updated successfully, but these errors were encountered: