Last active
December 27, 2015 21:29
-
-
Save rajeshpv/7391781 to your computer and use it in GitHub Desktop.
nodejs, npm, bower, grunt, jekyll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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