-
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
Error: spawn ENOENT #277
Comments
Similar problem here, but Windows 8 and VS2012 installed. (sqlite3, ejdb, or any node-gyp library)
|
I too have the same error,please some one provide solution |
Hi! In my machine (I installed python manually later and I set PYTHON environment variable and python binary to the path) I removed the PYTHON variable from environment properties (set PYTHON=) and it's work correctly. |
i also have windows 7 64 bits, when i try to install pg module, i have the same error aditional ---- |
scunish, start with nodejs 0.8 and you see the problem... |
hi b0c1 thank you for your response, what do you mean by start with node 0.8 im sorry i didnt undestood well, i downgraded the version of node now the error is different, 1716 error ref@0.1.3 install: |
Nope. I mean install nodejs 0.8 :) You using: "node -v v0.10.12" :)
|
hi b0c1 thank you once more, my last comment was by using version 0.8.22 and threw that error, i switched to v 0.8.25 as u suggested and the new error is. npm ERR! werid error 127 funny to read weird error |
Ehh, funny, but maybe you can create an issue with the new data |
thank you b0c1 good luck. |
I was getting the same problem. Solved defining the env variables: PYTHONPATH=C:\Pyhon Worked like charm |
I tried setting the Python path, but that didn't work. Downgrading to Node v0.8.25 worked! |
I have the same preoblem,I use node for v0.10.12,and use Visual Studio2012,the command |
having the same issue. node 0.10.15 npm 1.3.5 |
Guys, to solve that issue I did not change the version of node, I just changed the version of python to this one: Python 2.7.5 Windows X86-64 Installer Here is the page to download it: http://www.python.org/getit/ |
Ok, from reading your discussion and my own expirements I can conduct the following solution:
works like a charm :D |
Thanks,this problem has been resolved.In fact,that moment I had set the environment PYTHON,but make a howler. Thanks so much. Ok, from reading your discussion and my own expirements I can conduct the following solution: Make Sure Your Python and node are both x86 (32Bit) or both x86-x64 (64Bit), a mix will throw this error set the environment variable PYTHON to your python.exe, in my case I ran "set PYTHON=E:\Python27\python.exe" bevore running npm works like a charm :D — |
I've solved this problem a moment ago. in windows 8
Thank you all. |
Hey guys, I wrote this gist after struggling with this all day yesterday and figured it might help someone. https://gist.github.com/nullivex/7115612 I was able to get Canvas built a well as bson, bcrypt etc. I also wrapped together a lot of the information I found spread out beetween many docs. Maybe this could be merged into the documenation for git. Cheers hope this helps someone. |
This started as an issue with Python being installed and on the path. Well known issue, though could use better error message when it occurs. Closing this and tracking as #365. |
I would be careful by stating that this error occurs "only" with phyton not installed and not on the path. It cost me a couple of hours to discover (on W8.1, x64) that you need Python on your path as well as a separate ENV variable PYTHON=C:\Python\phyton.exe (or anything that matches the full path to your Python installation). However, with the latest versions of node and gyp as per now but when using an older (recommended?) version, namely 2.7.x of Python you may end up having to change the configure.js script:
See the discussion over here: #166 ... Because the configure script does find Python but with the lines above the configure script cannot determine the version and hence you'll end up with the infamous "Error: spawn ENOENT". |
No matter what combination of Python/Node I try I still can not get 'requestify' to install on my Windows machine. |
This issue is closed, but I don't see what the solution was?... The problem definately still exists. |
This problem was coming up for me on our TeamCity box (Windows 2012 x64); I couldn't get it to build any native extensions. Here's the list of things I did to resolve the problem that I pieced together from several different threads:
Example TeamCity Command Line Task: cd %teamcity.build.workingDir%
npm --msvs_version=2012 install HTH |
The below worked for me. PYTHONPATH=C:\Pyhon I also had to add the python in path variable just like path = %PYTHON% Also, the python version supported is between 2.5 and 3 only. |
For me, this was solved by installing Python 2.7.10 (previously had Python 3.5.2 which was referenced by path as I'm running Windows 10, Node v5.0.0 |
For me this was solved by setting : npm config set python C:\Python27\python.exe |
The solution is to update your system python then set it o NPM configuration |
@JsDevHub Can you please also explain how to do that then? |
In my case I was able to run the Gulp task in the Angular CLI, but was getting this issue in Visual Studio 2017. My solution was to change the order of my paths in Visual Studio. once there, re-order your paths such that $(PATH) is in the list right after your node modules as such: Hope that helps someone. |
Node-gyp refuses to build any native modules I've tried. I'm on Windows 7 64 bit (I'm trying to compile for x86 though, as I don't have the x64 SDK installed). Node-gyp says it's a bug which I need to report, so here I am:
The text was updated successfully, but these errors were encountered: