我在工作中遇到代理问题,我已经添加了代理配置并且可以运行 yarn 命令,例如服务。
现在这是我面临的一个新问题,我无法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 安装包
。
看看这个 link了解更多信息
关于vue.js - Yarn 通过代理安装包 - 网络问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65826125/