我正在我的机构代理后面工作,并且不能使用纱线,它显示
yarn install v1.16.0
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
npm install给我这个错误
network tunneling socket could not be established, statusCode=503
纱线版本1.16.0;节点版本8.10.0; npm版本3.5.2; ubuntu 18.04.02
我到目前为止所做的事情:
在/etc/apt/apt.conf
和/etc/environment
中设置代理
获取:: http ::代理“ http://username:password@proxy:port”;
获取:: https ::代理“ http://username:password@proxy:port”;
获取:: ftp ::代理“ http://username:password@proxy:port”;
在.bashrc
中设置代理
export 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
纱线配置集代理http://username:password@host:port
纱线配置设置https-proxy http://username:password@host:port
使用npm
npm配置集注册表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
他们都没有解决问题。在这种情况下如何使纱线工作?