npm through corporate proxy code example
Example 1: npm install behind proxy
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm config set proxy http://<username><password>@proxy-server-url>:<port>
npm config set https-proxy http://<username><password>@proxy-server-url>:<port>
npm install
Example 2: npm install not workjing behind proxy
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm --proxy http://username:[email protected]:80 install packagename