Tag: python 2.7

“无法findPython可执行文件…” – npm安装挂起

我正在使用“npm install”来下载和编译我写的一个小型node.js应用程序的所有依赖项。 我使用的“package.json”文件是正确的,并包含所有需要的信息。 其中一个要安装的软件包具有“node-gyp”作为依赖项,所以我以前安装了“python2”软件包。 现在,在某个时候,我开始收到错误消息: > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:103:14) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:11 gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:40:25) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:43:29) gyp ERR! stack at […]