Starting npm behind the corporate firewall: what do I need to tell the security team?

I am trying to run node.js but cannot install any packages because NPM is blocked. I tried the solutions here: How to fill in the proxy information in the cntlm configuration file , and here: NPM behind the NTLM proxy server and still got errors. I checked three times that I followed the instructions, and my ini has the same configuration as the instructions.

My next step is to ask the security team to allow access through npm through the firewall, but I do not see any documentation about this. What do I need to tell the security team?

Note. I know about npm Enterprise, but I think, before proceeding with this step, I need to install with npm.

+6
source share
1 answer

Yes, in your simplest case, all you have to do is one of these

npm config set proxy http://company.com:8000 

or

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

where http://company.com:8000 is your proxy server and port

(note the dash, not the _ underline)

You can also check access to the http://registry.npmjs.org npm registry from this machine.

In addition, your package.json also contains dependencies that require pulling git repository code. You can (most likely) configure git to use a proxy server .

+4
source

Source: https://habr.com/ru/post/981316/


All Articles