I am having trouble when running Npm install. I get the following error:
gyp ERR! stack Error: Command failed: C:UsersuserxxxAppDataLocalProgramsPythonPython37-32python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:276:12)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:915:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
I have added to my Path system variable the following:
C:Python27
In my user Path variable I have the following for Python:
C:UsersuserxxxAppDataLocalProgramsPythonPython37-32Scripts
C:UsersuserxxxAppDataLocalProgramsPythonPython37-32
C:UsersuserxxxAppDataLocalProgramsPythonPython37Scripts
C:UsersuserxxxAppDataLocalProgramsPythonPython37
Not sure what is going on here so any help appreciated!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…