DevTech101

DevTech101

nodejs

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 »

Node JS and express

Bootstrap + nodejs http://lresende.blogspot.com/2015/01/nodejs-building-html-site-template.html Express using EJS (not jade the default) express –ejs node_app2 In the Views > headers.ejs In the index.ejs Hello, world! This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point …

Node JS and express 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 »