In a command prompt or UNIX shell, enter the following commands to configure the proxy servers that Node.js uses.

npm config set proxy http://proxy-host:proxy-port
npm config set https-proxy http://proxy-host:proxy-port

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices