【发布时间】:2019-06-20 17:20:16
【问题描述】:
在有和没有 sudo 权限的 MacOS 上运行 npm install electron@latest 后,我无法使用 electron 命令。日志文件中的错误代码为:
117 error code ELIFECYCLE
118 error errno 1
119 error electron@5.0.4 postinstall: `node install.js`
119 error Exit status 1
120 error Failed at the electron@5.0.4 postinstall script.
120 error This is probably not a problem with npm. There is likely additional logging output above.
121 verbose exit [ 1, true ]
这是一个错误吗(因为我正在阅读类似的错误 on GitHub 但这些现在已关闭)?或者有没有办法修复或进一步强制安装?
我对 NPM/Electron 很陌生,所以这可能是正常的,我缺乏经验,但它在我的 Windows 机器上运行良好,所以我想知道。感谢您的帮助!
【问题讨论】: