Yarn 通过代理安装包 - 你的网络有问题
Yarn Install packages over proxy - trouble with your network
我在工作中遇到代理问题,我已经添加了代理配置并且可以 运行 纱线命令这样的服务。
现在我遇到了一个新问题,npm install 甚至 yarn install 都无法安装,我应该怎么安装?
编辑:--network-timeout 100000 不起作用。
这是我想要使用的:https://www.creative-tim.com/product/vue-black-dashboard
C:\Users{my-user}\Documents\Github\vue-black-dashboard-master>yarn
install yarn install v1.22.5
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection.
Retrying... info There
appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection.
Retrying... info There
appears to be trouble with your network connection. Retrying...
error An unexpected error occurred:
"https://registry.yarnpkg.com/chart.js: connect ETIMEDOUT
104.16.21.35:443". info If you think this is a bug, please open a bug report with the information provided in
"C:\Users\{my-user}\Documents\Github\vue-black-dashboard-master\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation
about this command.
尝试这样的事情 npm --https-proxy=http://proxy.company.com:8080 install package
。
查看此 link 了解更多信息
首先检查yarn配置中是否存在'https-proxy':yarn config list
如果没有,请尝试添加一个新值,如下所示:
yarn config set https-proxy http://proxy.myproxy.com:8080
我在工作中遇到代理问题,我已经添加了代理配置并且可以 运行 纱线命令这样的服务。
现在我遇到了一个新问题,npm install 甚至 yarn install 都无法安装,我应该怎么安装?
编辑:--network-timeout 100000 不起作用。
这是我想要使用的:https://www.creative-tim.com/product/vue-black-dashboard
C:\Users{my-user}\Documents\Github\vue-black-dashboard-master>yarn install yarn install v1.22.5 info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/chart.js: connect ETIMEDOUT 104.16.21.35:443". info If you think this is a bug, please open a bug report with the information provided in "C:\Users\{my-user}\Documents\Github\vue-black-dashboard-master\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
尝试这样的事情 npm --https-proxy=http://proxy.company.com:8080 install package
。
查看此 link 了解更多信息
首先检查yarn配置中是否存在'https-proxy':yarn config list
如果没有,请尝试添加一个新值,如下所示:
yarn config set https-proxy http://proxy.myproxy.com:8080