Last active
August 29, 2015 14:19
-
-
Save ajithrn/f580ba761afce2335cc0 to your computer and use it in GitHub Desktop.
Node: Commands
This file contains hidden or 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
/** | |
* 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