Skip to content

Instantly share code, notes, and snippets.

@ajithrn
Last active August 29, 2015 14:19
Show Gist options
  • Save ajithrn/f580ba761afce2335cc0 to your computer and use it in GitHub Desktop.
Save ajithrn/f580ba761afce2335cc0 to your computer and use it in GitHub Desktop.
Node: Commands
/**
* Some hacks and code snippets to make nodejs working smoothy on Ubuntu 14.04 / Elementary Freya 0.3
**/
/**
* nodejs installation from latest ppa
* ref: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
*/
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install build-essential
/**
* code to avoid the permission isses, nodejs folder lock etc ..
* ref: http://stackoverflow.com/a/25855403/2612010
*/
sudo chown -R $USER ~/.npm
sudo chown -R $USER /usr/local/lib/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment