node-gyp找不到python可执行文件

时间:2018-08-27 15:30:21

标签: node.js npm-install node-gyp

我已经读过Can't find Python executable,但对我来说仍然无效。

我也尝试放入.npmrc

  • python = D:\ Program Files(x86)\ Python37-32 \ python.exe
  • python = D:\ Program文件(x86)\ Python37-32

exe肯定在那里,并且在我的Windows PATH变量上。

我仍然得到:

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "D:\Program Files (x86)\Python37-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:492:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:517: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:152:21)
gyp ERR! System Windows_NT 10.0.14393
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:\Source\Orchestrator\orchestrator\node_modules\nanomsg

0 个答案:

没有答案