-
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
ImportError: No module named gyp #807
Comments
What do |
No, just |
I apologize, I reset my computer to factory settings then followed these steps for making node-gyp work on windows and everything works fine now. Will re-open if I ever encounter this error again because I have no idea how to reproduce it from a fresh install of Windows. |
I managed to reproduce the issue. Following the node-gyp Windows workaround here, the command
causes all npm installs relying on node-gyp to fail with the "no module named gyp" error. The fix was to just set python using the full path to the executable, as follows:
This may cause a separate error,
(See here) |
@ericgrosse I keep getting |
Hi there! |
Me too got the same issue. |
@piccoloaiutante since you are the latest, could you provide the full output? |
fwiw, even though I'm doing a different thing on a different operating system (trying to build this: https://github.com/awslabs/serverless-image-resizing), I'm getting the same error, so here's some output if it's of any use: [......]
Traceback (most recent call last): |
@axlotl make sure you are using the latest P.S. If you are using an EC2 machine, which template did you use (and which P.P.S. I not a linux maven, but AFAIK
|
@refack thank you, npm version was exactly the problem. It was freshly installed via yum but the ec2 instance was kind of old - I kind of figured yum would always give me the latest but I was wrong. Fixed by instantiating a new instance and installing on that. |
In my case it was caused by the fact that I had python2.7 installed via cygwin and I needed to change the npm python variable |
I get the following error when running
npm install mongoose
and any other package that depends on node-gyp:Some details about my environment:
OS: Windows 8.1
node: v4.2.2
npm: v3.3.12
python: 2.7.9
What's causing this error and how can I fix it? Googling "no module named gyp" returns very little, and the solutions I've tried didn't work. I suspect the root issue is something other than what the error is hinting at.
The text was updated successfully, but these errors were encountered: