Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active September 25, 2017 03:04
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 jansanchez/6198809 to your computer and use it in GitHub Desktop.
Save jansanchez/6198809 to your computer and use it in GitHub Desktop.
Install NodeJs and your dependences
# write how sudo
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
# clone node repo
# in ~/user
git clone https://github.com/joyent/node.git
# or download the stable latest version from official website: http://nodejs.org/
cd node
# config
./configure --openssl-libpath=/usr/lib/ssl
# prepare install
make
# Install nodeJs
sudo make install
# check the version of NodeJS
node -v
# check the version of npm
npm -v
# main dependences
npm install -g jade; npm install -g stylus; npm install -g coffee-script;
npm install -g express; npm install -g yuidocjs; npm install -g yui-compressor;
npm install -g component; sudo npm install -g bower; sudo npm install -g brunch;
npm install -g handlebars; npm install -g request; npm install -g mysql;
npm install -g commander; npm install -g underscore; npm install -g async;
npm install -g optimist; npm install -g colors; npm install -g mkdirp;
npm install -g uglify-js; npm install -g socket.io; npm install -g connect;
npm install -g redis; npm install -g mongodb; npm install -g mongoose;
npm install -g grunt; npm install -g yeoman-generator; npm install -g backbone;
npm install -g requirejs; npm install -g nodemailer; npm install -g watch;
sudo npm install -g grunt-cli; sudo npm install -g pushserve; sudo npm install -g grunt-init;
sudo npm install -g lodash; sudo npm install -g yo; sudo npm install -g generator-webapp;
sudo npm install -g mocha;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment