Kimchy
Kimchy

Reputation: 501

npm windows installation proxy issue

I am using below commands to setup proxy on window7

npm config set proxy http://<username>:<password>@<proxy-server-url>:<port>
npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port>

but I am not able to setup proxy correctly and when I am trying to run the command

npm config get proxy

I am getting erroneous proxy URL as below

http://<username>/:<password>@<proxy-server-url>:<port>

and

it seems slash before colon between "username:password" is getting added incorrectly as "username/:password".

How do I correctly configure npm proxy on windows?

Upvotes: 1

Views: 234

Answers (1)

Pasha II
Pasha II

Reputation: 11

write command in cmd(admin): this work for me in w10

npm config set https-proxy http://username:password@proxy:port

Upvotes: 1

Related Questions