鲍尔在公司代理隧道错误

我尝试使用ember-cli设置新的Ember应用程序,但即使在更新“C:… \ bower \ node_modules \ bower-config \ lib \ util \ defaults.js”中的代理后也会收到此错误。

通过npm安装工具包。 创build新应用程序时出错 删除生成的目录./ember-quickstart请求https://bower.herokuapp.com/packages/ember-cli-shims失败:tunnelin g socket无法build立,原因=写入EPROTO 101057795:错误:140770FC:S SL例程:SSL23_GET_SERVER_HELLO:未知协议:openssl \ ssl \ s23_clnt.c:794:

错误:请求https://bower.herokuapp.com/packages/ember-cli-shims失败:无法build立unneling套接字,原因=写入EPROTO 101057795:错误:140 770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议: OpenSSL的\ SSL \ s23_clnt。 C:794:

在createError(C:\ Users \ user \ AppData \ Roaming \ npm \ node_modules \ ember-cli \ no de_modules \ bower \ lib \ node_modules \ bower-registry-client \ lib \ util \ createError.js:2:15) Request._callback(C:\ Users \ user \ AppData \ Roaming \ npm \ node_modules \ embercli \ node_modules \ bower \ lib \ node_modules \ bower-registry-client \ lib \ lookup.js:97:2 9)at self .callback(C:\ Users \ user \ AppData \ Roaming \ npm \ node_modules \ ember-cli \ node_modules \ bower \ lib \ node_modules \ request \ request.js:198:22)在emitOne(events.js:77:13 )在request.request.emit(C:\ Users \ user \ AppData \ Roaming \ npm \ node_modules \ ember-cli \ node_modules \ bower \ lib \ node_modules \ request)上的Request.emit(events.js:169:7)在Request.onRequestError(C:\ Users \ user \ AppData \ Roaming \ npm \ node_modules \ e mber-cli \ node_modules \ bower \ lib \ node_modules \ request \ request.js文件中:-replay \ index.js:89:29)在ClientRequest.onError(C:\ Users \ user \ AppData \ Roaming \ npm \ node_modules \ ember)上ClientRequest.emit(events.js:169:7)处的emitOne(events.js:77:13) -cli \ node_modules \凉亭\ LIB \无 de_modules \隧道剂\ index.js:178:21)

提前致谢。

在你的情况下, bower不能访问凉亭储存库。 您必须在.bowerrc设置代理。

请检查您的主文件夹中的〜/ .bowerrc。

 { "proxy": "http://<user>:<password>@<host>:<port>", "https-proxy":"http://<user>:<password>@<host>:<port>", "strict-ssl": false, "registry": "http://bower.herokuapp.com/", "color": true } 

strict-ssl: false会closuresssl的使用。 也许你也需要这个,取决于防火墙。

我解决了运行这两个命令:

 export HTTP_PROXY="http://user:password@host:portnumber" export HTTPS_PROXY="http://user:password@host:portnumber" 

用您的代理replaceuserpasswordhostportnumber