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

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