yarn install v0.21.3
[1/4] Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://github.com/igorklopov/node-resolve.git: tunneling socket could not be established, cause=write EPROTO 140399640340352:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:\n".
首先,我认为这可能是代理问题
因此,我添加了公司代理设置:
yarn config set proxy http://proxy.dvfu.ru:3128
yarn config set https-proxy https://proxy.dvfu.ru:3128
但是什么也没发生,上面仍然有错误。
最佳答案
请尝试下面这三个命令。它为我工作。
关于ruby-on-rails-4 - “ yarn 安装”原因 'trouble with network connection',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43061045/