node.js grunt & bower on UBUNTU
#normal ubuntu package
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g gulp-cli
sudo npm install -g bower
#using vnm
sudo apt-get update
sudo apt-get install build-essential libssl-dev
#get nvm from repository
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
#find node version
#nvm ls-remote
nvm install 0.12.13
#nvm use 0.11.13 for older versions
#You can have npm install packages to the Node.js project's ./node_modules directory by using the normal format:
#npm install express
#If you'd like to install it globally (available to the other projects using the same Node.js version), you can add the -g flag:
#npm install -g express
#This will install the package in:
#~/.nvm/node_version/lib/node_modules/package_name
#Installing globally will let you run the commands from the command line, but you'll have to use link the package into your local sphere to require it from within a program:
#npm link express