gpt4 book ai didi

vue.js - Yarn 通过代理安装包 - 网络问题

转载 作者:行者123 更新时间:2023-12-03 08:28:37 24 4
gpt4 key购买 nike

我在工作中遇到代理问题,我已经添加了代理配置并且可以运行 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>yarninstall yarn install v1.22.5info No lockfile found.

[1/4] Resolving packages...
info There appears to be trouble with your network connection.Retrying... info Thereappears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection.Retrying... info Thereappears to be trouble with your network connection. Retrying...
error An unexpected error occurred:"https://registry.yarnpkg.com/chart.js: connect ETIMEDOUT104.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 documentationabout this command.

最佳答案

尝试类似的操作npm --https-proxy=http://proxy.company.com:8080 安装包

看看这个 link了解更多信息

关于vue.js - Yarn 通过代理安装包 - 网络问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65826125/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com