dev777
dev777

Reputation: 1019

Getting ETimedOut error when trying to install packages using npm in windows

I'm facing this "ETimedOut" error when trying to use this command "npm install -g yo" .Actually I'm using a network proxy to access internet.

I got a warning message that "If u are behind a proxy,please make sure that 'proxy' config is set properly ". Can anyone please help me out regarding this issue.

Upvotes: 1

Views: 733

Answers (1)

TimoStaudinger
TimoStaudinger

Reputation: 42460

You can set the npm proxy config parameter using these commands:

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

Source

Upvotes: 1

Related Questions