我已经将我的环境变量设置为PYTHON=D:\Program Files\Python36-32\python.exe
,但是仍然得到以下错误。这是在执行npm install node-gyp --save
时执行的。我找不到解决办法。我的python版本是python-3.5.6
gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "D:\Program Files\Python36-32\python.exe", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:112:15)
gyp ERR! System Windows_NT 6.1.7601
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"
gyp ERR! cwd D:\R04_17\FarmersMBaaS\node_modules\timekit gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
任何帮助都将不胜感激。需要一个完美的解决方案来消除这个错误。在
我认为node-gyp需要旧的python2.7.xxx,而不是python3.xxx
参见: https://github.com/nodejs/node-gyp/issues/746
相关问题 更多 >
编程相关推荐