Yes, in your simplest case, all you have to do is one of these
npm config set proxy http:
or
npm config set https-proxy http:
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 .
source share