Read about a proxy variable in a .npmrc file but it does not work. Trying to avoid manually downloading all require packages and installing.
Finally i have managed to solve this problem being behinde proxy with AD authentication. I had to execute:
npm config set proxy http://domain%5Cuser:password@proxy:port/
npm config set https-proxy http://domain%5Cuser:password@proxy:port/
It is very important to URL encode any special chars like backshlash or # In my case i had to encode
backshlash with %5C so domain\user will be domain%5Cuser# sign with %23%0A so password like Password#2 will be Password%23%0A2I have also added following settings:
npm config set strict-ssl false
npm config set registry http://registry.npmjs.org/