【问题标题】:MacOS Electron JS Installation Missing Path LinkMacOS Electron JS 安装缺少路径链接
【发布时间】: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 机器上运行良好,所以我想知道。感谢您的帮助!

【问题讨论】:

    标签: node.js npm electron


    【解决方案1】:

    我在 Mac 上使用命令 sudo npm install -g electron@latest --unsafe-perm=true 安装了电子 js。我可以运行electron 命令。

    【讨论】:

      猜你喜欢
      • 2018-07-13
      • 2017-03-11
      • 1970-01-01
      • 2016-09-06
      • 1970-01-01
      • 1970-01-01
      • 2021-08-07
      • 1970-01-01
      • 2019-11-22
      相关资源
      最近更新 更多