当node-gyp本身安装在/usr/bin/node-gyp中时,它为什么要在绝对路径中查找node-gyp.js?如果我这样做了
find /usr -name node-gyp.js
结果是
/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
可以看到,我在两个地方有node-gyp.js。如何让node-gyp搜索这些地方?
发布于 2015-04-15 18:02:42
这是一个node-gyp安装问题。我使用的是旧版本的npm;升级npm后,node-gyp安装成功,运行正常。
https://stackoverflow.com/questions/29634496
复制相似问题