【问题标题】:Failed to install electron-prebuilt in windows 7无法在 Windows 7 中安装 electron-prebuilt
【发布时间】:2016-10-23 22:37:24
【问题描述】:

我正在尝试使用 the instruction 安装电子预构建

但我在各方面都失败了。

【问题讨论】:

    标签: node.js npm installation electron npm-install


    【解决方案1】:

    这是由于 SSL 证书错误造成的,如果您信任源您可以在 npm 中使用禁用 strict-ssl 选项 npm config set strict-ssl false.

    【讨论】:

    • 感谢您的评论。我已经尝试过 npm config set strict-ssl false。还是一样的问题
    • 尝试运行npm_config_strict_ssl=false npm i electron-prebuild -g 或找到并删除“.electron”文件夹并重试。
    【解决方案2】:

    设置 npm 代理

    一个。

    npm config set proxy "http://internal%5c<username>:<password>@uscdtcpxy.internal.imsglobal.com:8080/"
    

    b.

    npm config set https-proxy "http://internal%5c<username>:<password>@uscdtcpxy.internal.imsglobal.com:8080/"
    

    *将 替换为您的内部用户名,将 替换为两个命令的 lan 密码

    【讨论】:

      猜你喜欢
      • 2017-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-13
      • 2020-03-17
      • 2012-11-25
      • 2013-03-02
      • 1970-01-01
      相关资源
      最近更新 更多