Skip to content
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

Install failed in Window #510

Closed
kinglion opened this issue Feb 2, 2015 · 2 comments
Closed

Install failed in Window #510

kinglion opened this issue Feb 2, 2015 · 2 comments

Comments

@kinglion
Copy link

kinglion commented Feb 2, 2015

When I use "node-gyp configure build",I got the error message like this~How do I fix it?

gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:1001:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:792:
34)
@froatsnook
Copy link

With google I found a similar issue here. Try this:

fredpantuzza commented on Jul 12, 2013
I was getting the same problem. Solved defining the env variables:

PYTHONPATH=C:\Pyhon
PYTHON=%PYTHONPATH%\python.exe

Worked like charm

@kinglion
Copy link
Author

kinglion commented Feb 3, 2015

tks.Finally I found my python version doesn't match gyp

gyp ERR! configure error
gyp ERR! stack Error: Python executable "d:\Python34\python.exe" is v3.4.2, whic
h is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & <
 3.0.0.
gyp ERR! stack     at failPythonVersion (C:\Program Files\nodejs\node_modules\np
m\node_modules\node-gyp\lib\configure.js:108:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:97:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:646:7)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at maybeClose (child_process.js:756:16)
gyp ERR! stack     at Socket.<anonymous> (child_process.js:969:11)
gyp ERR! stack     at Socket.emit (events.js:95:17)
gyp ERR! stack     at Pipe.close (net.js:465:12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants