Search code examples
vue.jsyarnpkghttp-proxy

Yarn Install packages over proxy - trouble with your network


I'm having a issue with proxy on my work, I've already added proxy config and can run yarn commands such serve.

Now this is a new problem I'm facing, I can't npm install or even yarn install, what should I do to install?

Edit: --network-timeout 100000 don't work.

This is what I want to use: 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.


Solution

  • Try something like this npm --https-proxy=http://proxy.company.com:8080 install package.

    Check out this link for more information