用npm安装mmmagic时出错,node-gyp重build失败
我试图安装npm安装mmmagic,并继续得到这个错误。
我已经尝试了多个版本的mmmagic以及使用节点v0.10.40和节点v0.12.7,并重新安装node-gyp。
我清除了npmcaching,并多次销毁了node_module文件夹。
有任何想法吗?
make: *** [Release/magic.node] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/XXXX/.nvm/v0.10.40/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 15.0.0 gyp ERR! command "node" "/Users/XXXX/.nvm/v0.10.40/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/XXXX/Desktop/EdvisorIO/JJJJ/node_modules/mmmagic gyp ERR! node -v v0.10.40 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok npm ERR! mmmagic@0.3.16 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mmmagic@0.3.16 install script. npm ERR! This is most likely a problem with the mmmagic package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls mmmagic npm ERR! There is likely additional logging output above. npm ERR! System Darwin 15.0.0 npm ERR! command "/Users/XXXX/.nvm/v0.10.40/bin/node" "/Users/XXXX/.nvm/v0.10.40/bin/npm" "install" npm ERR! cwd /Users/XXXX/Desktop/EdvisorIO/JJJJ npm ERR! node -v v0.10.40 npm ERR! npm -v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! not ok code 0
- 当试图configuration或重buildnode-gyp时,出现错误:mac osx mavericks
- 在通过命令行传递时,node-gypvariables的行为有所不同
- sudo npm install bignum -g:OSError:权限被拒绝
- 如何在“node-gyp rebuild”中声明“'NewInstance'已被弃用”警告? v8中NewInstance的替代select是什么?
- 使用node-nan在一个node.js模块中设置WindowsHookEx
- 如何将tesseract库包含在node-gyp构build过程中
- npm安装mongoose:错误与节点gyp错误
- 将Node.js模块中的Boost与node-gyp链接起来
- 如何交叉编译ARM的node-gyp