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

标签 vue.js yarnpkg http-proxy

我在工作中遇到代理问题,我已经添加了代理配置并且可以运行 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/

相关文章:

Android 模拟器 http-proxy SSL 握手失败

javascript - VueJS 路由器 : $route is not defined

javascript - Vue Webpack 构建破坏了 Bulma CSS

node.js - 如何通过 ts-node 使用项目依赖项

yarnpkg - 为什么以及何时 yarn 决定不在工作区中提升包裹?

c# - RestSharp 不支持 RestRequest 请求。凭据 - 无法通过 http 代理

javascript - Vue 绑定(bind)将数据发送到表

vue.js - 如何为 vue 生产构建输出单个 build.js 文件

gatsby - yarn : command not found after gatsby deployment to netlify

http - 实现 HTTP 代理