错误信息
lxdeMacBook-pro:front-web lx$ npm install
> fsevents@1.2.4 install /Users/lx/workspace/front-web/node_modules/fsevents
> node install
[fsevents] Success: "/Users/lx/workspace/front-web/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> grpc@1.11.3 install /Users/lx/workspace/front-web/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command "/Users/lx/.nvm/versions/node/v10.3.0/bin/node" "/Users/lx/workspace/front-web/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/lx/workspace/front-web/node_modules/grpc
node-pre-gyp ERR! node -v v10.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
npm WARN mouth-platform-web-h5@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! grpc@1.11.3 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 6
npm ERR!
npm ERR! Failed at the grpc@1.11.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lx/.npm/_logs/2018-06-01T08_56_19_502Z-debug.log
分析问题
类似问题 这里
解决方法
sudo npm install -g node-gyp