美文网首页Electron开发记录
electron 7.x 无法运行问题

electron 7.x 无法运行问题

作者: YLPeach | 来源:发表于2019-12-23 10:35 被阅读0次

https://github.com/electron/electron/issues/20731

throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installiete node_modules/electron and try installing again')

https://npm.taobao.org/mirrors/electron

  1. 下载 https://cdn.npm.taobao.org/dist/electron/7.1.7/electron-v7.1.7-win32-x64.zip
  2. 复制到你的electron下载位置\node_modules\electron


    image.png
  3. 修改
    • \node_modules\electron\install.js


      image.png
  4. 运行 node install.js (用node运行这个修改好的文件)
    测试可以正常运行,这是找到最简单的处理方法了!
    有问题联系留意交流

相关文章

网友评论

    本文标题:electron 7.x 无法运行问题

    本文链接:https://www.haomeiwen.com/subject/ajcznctx.html