electron-builder出错问题解决

electron-builder出错问题解决


在rebuilding native production dependencies 的时候出错
具体错误如下:

Error: /Users/root/.nvm/versions/node/v10.0.0/bin/node exited with code 6
Output:

> grpc@1.19.0 install /Users/root/Documents/myProject/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library


Error output:
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Users/root/.nvm/versions/node/v10.0.0/bin/node" "/Users/rootDocuments/myProject/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/root/Documents/myProject/node_modules/grpc
node-pre-gyp ERR! node -v v10.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.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 ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! grpc@1.19.0 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.19.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

解决方法:sudo npm install -g node-gyp
实测好用,不过不知道哪里不对,第二次运行又不好用了,得重新再执行一遍上述命令,在idea里面执行的命令,搞不太清楚,不知道是不是需要重启一下。mark一下。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值