节点gyp错误,即使在设置环境变量之后

2024-04-24 08:06:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经将我的环境变量设置为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

任何帮助都将不胜感激。需要一个完美的解决方案来消除这个错误。在


Tags: modulesnodenpmstackconfigure错误jsnodejs