I can’t download packages via npm
on my working computer. The problem is that everything in the company works through a proxy server.
I wrote the proxy in this way:
npm config set http-proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
But still does not download packages, swears at the connection.
Who uses npm
this way, tell me what to do.
As far as I understand, you also need to register your login and password.
I did it like this:
npm config set https-proxy http: // user: [email protected]: 8080
Didn’t help.
Answer 1, authority 100%
Found a solution, in the file C: \ Users \ & lt; username & gt; \. npmrc
it was necessary to register in this form:
proxy = http: // user: pass @ proxyserver: 8080 /
https-proxy = http: // user: pass @ proxyserver: 8080 /
Using the command npm config set proxy & lt; proxy & gt;
will also work, because this command writes the configuration to the same file.