【问题标题】:Issues while installing ionic - 'EPROTO'安装离子时的问题 - 'EPROTO'
【发布时间】:2018-05-31 04:50:36
【问题描述】:

当我安装 ionic 时出现以下错误:

npm 错误!代码 EPROTO npm 错误! errno EPROTO npm 错误!请求 https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz 失败,原因:写入 EPROTO 0:error:140770FC:SSL 例程:SSL23_GET_SERVER_HELLO:未知 协议:openssl\ssl\s23_clnt.c:827:npm ERR!

我在其服务器运行 Ubuntu-16 的网络中使用 Windows 10。 我在代理后面并设置参数如下:

$ npm config set proxy http://<username>:<password>@<proxy-server-url>:<port>
$ npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port>

【问题讨论】:

标签: javascript node.js typescript npm


【解决方案1】:

应该是http-proxy- 而不仅仅是proxy

npm config set http-proxy http://<username>:<password>@<proxy-server-url>:<port>
npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port>

【讨论】:

    猜你喜欢
    • 2015-11-28
    • 2016-06-01
    • 1970-01-01
    • 2017-06-28
    • 1970-01-01
    • 2017-08-10
    • 2020-12-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多