0

I try to set npm config proxy. So, I used the command

npm config set proxy "http://myname:mypassword@proxydomain.corp:80/"

(or the same without quotes) Then when I check it

npm config get proxy

I get the string where "/" is present before ":" (which is a separator between username and password)

http://myname/:mypassword@proxydomain.corp:80/

But this slash is superfluous, isn't it? If yes how it gets there and is there a way to avoid this? (for any case I do that in Citrix).

Also I tried to use values .npmrc instead of console:

proxy="http://myname:mypassword@proxydomain.corp:80/"
https_proxy="myname:mypassword@proxydomain.corp:80/"
https-proxy="myname:mypassword@proxydomain.corp:80/"

Then when I run

npm config list

I get that superfluous slash for proxy and http-proxy but not for http_proxy:

proxy = "http://myname/:mypassword@proxydomain.corp:80/"
https_proxy = "http://myname:mypassword@proxydomain.corp:80/"
https-proxy = "http://myname/:mypassword@proxydomain.corp:80/"

So, how to manage it?

For any case: my host machine is Mac.

4

0 回答 0