Eul*_*lar 8 ubuntu node.js npm yarnpkg
我在我的研究所代理后面工作,不能使用纱线,它显示
yarn install v1.16.0
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
Run Code Online (Sandbox Code Playgroud)
npm install 给我这个错误
network tunneling socket could not be established, statusCode=503
Run Code Online (Sandbox Code Playgroud)
纱线版本 1.16.0;节点版本 8.10.0;npm 版本 3.5.2;Ubuntu 18.04.02
到目前为止我做了什么:
在/etc/apt/apt.conf和设置代理/etc/environment
获取::http::proxy " http://username:password@proxy:port ";
获取::https::proxy " http://username:password@proxy:port ";
获取::ftp::proxy " http://username:password@proxy:port ";
设置代理 .bashrc
导出 http_proxy="http://username:password@proxy:port";
导出 https_proxy="http://username:password@proxy:port";
export HTTPS_PROXY="http://username:password@proxy:port"
export HTTP_PROXY="http://username:password@proxy:port"
yarn install --network-timeout 100000
yarn config set proxy http://username:password@host:port
yarn config set https-proxy http://username:password@host:port
使用 npm
npm config set registry http://registry.npmjs.org/
npm config set proxy http://username:mypassword@proxy:port
npm config set https-proxy http://username:mypassword@proxy:port
npm config set strict -ssl false
npm --proxy http://myusername:mypassword@proxy.us.somecompany:8080 --without-ssl --insecure -g install
他们都没有解决问题。在这种情况下我如何让纱线工作?
更新:
我试过:
$ wget https://registry.npmjs.org/requests/-/requests-0.2.2.tgz
--2019-06-07 14:15:45-- https://registry.npmjs .org/requests/-/requests-0.2.2.tgz 正在
解析proxy.iacs.res.in (proxy.iacs.res.in)... 192.168.1.106, 192.168.1.237
连接到proxy.iacs.res.in (proxy.iacs.res.in)|192.168.1.106|:3128... 已连接。
代理隧道失败:服务不可用无法建立 SSL 连接。
| 归档时间: |
|
| 查看次数: |
5216 次 |
| 最近记录: |