Skip to content

Instantly share code, notes, and snippets.

@sandeshdamkondwar
Forked from olegp/setup-node.sh
Last active August 29, 2015 14:06
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 sandeshdamkondwar/387a28af5cee06b81356 to your computer and use it in GitHub Desktop.
Save sandeshdamkondwar/387a28af5cee06b81356 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Get the absolute path of the folder where this script exists.
curr_dir=`pwd`
dir=`dirname $0`
FILE_PATH=`cd $dir;pwd`
# Install node
apt-get install python-software-properties curl -y
add-apt-repository ppa:chris-lea/node.js-devel
apt-get update
apt-get install nodejs -y
ln -s /usr/include/nodejs /usr/include/node
# Ruby is required for isntalling SASS gem
apt-get install ruby
gem install sass
# Install grunt
npm install -g grunt-cli
# Go to repo directory and install node modules separately
cd $FILE_PATH/..
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment