为了账号安全,请及时绑定邮箱和手机立即绑定

安装electron时报错

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@6.0.1 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@6.0.1 postinstall 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/cuiyuejiao/.npm/_logs/2019-08-11T08_35_43_504Z-debug.log



4204 error code ELIFECYCLE
4205 error errno 1
4206 error electron@6.0.1 postinstall: `node install.js`
4206 error Exit status 1
4207 error Failed at the electron@6.0.1 postinstall script.
4207 error This is probably not a problem with npm. There is likely additional logging output above.
4208 verbose exit [ 1, true ]

正在回答

2 回答

苹果系统在安装命令前面加上sudo

0 回复 有任何疑惑可以回复我~

加上sudo也是这样

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

安装electron时报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信