DevTech101

DevTech101

node

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 »

Solaris NodeJS zone install and configuration

Solaris NodeJS zone install and configuration First, lets Compile NodJS from source, get the source from the NodeJS website. Something like the below should work to compile. env CC=gcc ./configure –prefix=/opt/node-v6.2.2 # for 8 cpu’s gmake -j 8 gmake install Next, lets modify the zone properties and distribute the compiled bundle to all the Solaris …

Solaris NodeJS zone install and configuration Read More »

Nodejs Bootstrap and Express project

Configuring NodeJS, Express, and Bootstrap npm install –save express-partials Initialize /install NodeJS express Module npm install -g express-generator Create all need structure with express express –ejs bootstrap/ Finally, install NodeJS modules npm install Next, start NodeJS npm start Note: If you are using Netbeans, to be able to start from within Netbeans, add the below …

Nodejs Bootstrap and Express project 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 »