npm install opencc 报错
发布于 10个月前 作者 jeremy16601 436 次浏览
opencc[@1](/user/1).0.0 install /Users/xueqingli/Documents/node.js项目/webot-douban/node_modules/opencc
> node-gyp rebuild

gyp: /Users/xueqingli/.node-gyp/0.10.26/common.gypi not found (cwd: /Users/xueqingli/Documents/node.js项目/webot-douban/node_modules/opencc) while reading includes of binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/xueqingli/Documents/node.js项目/webot-douban/node_modules/opencc
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! opencc[@1](/user/1).0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencc[@1](/user/1).0.0 install script.
npm ERR! This is most likely a problem with the opencc 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 opencc
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "opencc"
npm ERR! cwd /Users/xueqingli/Documents/node.js项目/webot-douban
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/xueqingli/Documents/node.js项目/webot-douban/npm-debug.log
npm ERR! not ok code 0

谢谢 大神。。们

1 回复

报错记得格式化, 谢谢

回到顶部