DevTech101

DevTech101

npm

How to set NPM proxy settings in .npmrc

Below you will find, how to set a proxy for Node/NPM by using an .npmrc file. cat .npmrc proxy=http://user:passsword@host.domain.com:8080/ https-proxy=http://user:passsword@host.domain.com:8080/ strict-ssl=false registry=http://registry.npmjs.org/ To make node js or npm work behind a firewall To get node compiled on Solaris check out the link below. http://www.petertribble.co.uk/Solaris/node.html Note: after pkgadd, move Node to node. also modify this file …

How to set NPM proxy settings in .npmrc Read More »

Setting Node JS / NPM Proxy

To make node js or npm work behind a firewall Get node compiled for Solaris from http://www.petertribble.co.uk/Solaris/node.html Note: after pkgadd, move Node to node. also modify this file /opt/node/lib/node_modules/npm/bin/npm-cli.js Disable strict ssl use npm config set strict-ssl false Set the regstry to non https npm config set registry http://registry.npmjs.org/ Verfy with npm config list Then …

Setting Node JS / NPM Proxy Read More »