关于node-gyp在macOS上安装npm时出错

时间:2018-12-17 11:52:51

标签: node.js macos npm npm-install

在运行npm install时出现以下错误

    npm ERR! node v6.11.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! xxhash@0.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the xxhash@0.2.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xxhash 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 information on how to open an issue for this project with:
npm ERR!     npm bugs xxhash
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xxhash
npm ERR! There is likely additional logging output above.

我检查了有关xcode的所有内容,也检查了python。 我不知道该怎么办。请帮助

0 个答案:

没有答案