To make node js or npm work behind a firewall

Get node compiled for Solaris from

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

Verfy with npm config list

Then to install

npm --proxy install packagename

Or by setting the proxy and then install

npm config set proxy
npm config set http-proxy
npm config set https-proxy

npm install expres

npm and bower

cat /root/.bowerrc

    "registry": "",
    "strict-ssl": false,

git proxy and certficate or self sign issues

git config --global http.proxy
git config --global https.proxy
  • change proxyuser to your proxy user
  • change proxypwd to your proxy password
  • change to the URL of your proxy server
  • change 8080 to the proxy port configured on your proxy server
git config --global --unset http.proxy
git config --global --unset https.proxy

If you have issues with self sign, try one of the below

git config --global http.sslverify "false"

or if you like to add a ca

git config –global http.sslcainfo /bin/certificate.crt


0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x
%d bloggers like this: