这似乎是一个已解决的帖子,只是为了帮助遇到同样问题的人。
我试图安装 Nobel(ancs 的依赖项)并遇到问题
$ npm install -g noble
npm WARN optional dep failed, continuing xpc-connection@0.1.3
> noble@0.3.13 install /usr/local/lib/node_modules/noble
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn /path/to/executable/python2.7 ENOENT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
gyp ERR! stack at child_process.js:1144:20
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Linux 3.19.3-3-ARCH
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/noble
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp …Run Code Online (Sandbox Code Playgroud)