Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Last active December 27, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshpv/7391781 to your computer and use it in GitHub Desktop.
Save rajeshpv/7391781 to your computer and use it in GitHub Desktop.
nodejs, npm, bower, grunt, jekyll
download and unzip nodejs runtime from http://nodejs.org/download/
cd ~/Downloads
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz
mkdir -p ~/programs/node && cd $_
tar xfz ~/Downloads/node-v0.10.28-linux-x64.tar.gz
ln -s ~/programs/node/node-v0.10.28-linux-x64 ~/programs/node_current
sudo vi /etc/bash.bashrc
>>put and append bin to path
export NODE_HOME=~/programs/node_current
>>save file and open new terminal and test
node --version
>>v0.10.28
npm is part of nodejs runtime, test
npm --version
>> 1.4.9
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
installing GLOBAL packages, it saves global libraries in install dir of node, we use flag "-g" for that
npm install -g bower
npm install -g grunt grunt-cli
npm install -g karma
#create symlink for karma
cd ~/programs/node/node-v0.10.28-linux-x64/bin
ln -s ../lib/node_modules/karma/bin/karma karma
#start and test globally
karma start
karma --version
bower --version; grunt --version;
1.2.7
grunt-cli v0.1.10
Karma version: 0.10.4
#install ruby and rubygems to install jekyll
sudo apt-get install ruby1.9.1 ruby1.9.1-dev make
sudo gem install jekyll
ruby --version; gem --version;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment