node-gyp错误找不到模块'/node_modules/node-gyp/bin/node-gyp.js'
为什么当node-gyp本身安装在/ usr / bin / node-gyp中时,它在绝对path中查找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来search这些地方?
这是一个节点安装麻烦。 我使用的是旧版本的npm; 升级npm后,node-gyp安装成功并运行正常。
- Node.JS – 在使用npm install时,与Node-gyp和/或ELIFECYCLE错误
- 用npm安装socket.io
- 错误:未定义符号:仅在使用node-gyp进行编译时,omp_init_lock
- 如何在“node-gyp rebuild”中声明“'NewInstance'已被弃用”警告? v8中NewInstance的替代select是什么?
- 即使从package.json中删除,node-gyp也会尝试构build依赖项
- Windows_NT中的bcrypt模块的node-gyp构build错误6.1.7600(x86)
- NPM:在OS X El Capitan上找不到“ld:library for -lgcc_s.10.5”?
- 用npm安装mmmagic时出错,node-gyp重build失败
- Socket.io编译错误