Last active
January 15, 2017 19:24
-
-
Save phellipeandrade/7916c5968b2ef2fb2e51cea5a5689e60 to your computer and use it in GitHub Desktop.
The Best Way to Install Node.js Ubuntu
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
$ sudo apt-get purge nodejs && sudo apt-get autoremove && sudo apt-get autoclean | |
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash | |
$ nvm list | |
$ nvm ls-remote | |
$ nvm install 6.9.4 | |
$ nvm use 6.9.4 | |
$ nvm alias default 6.9.4 | |
$ node -v | |
$ npm install -g npm | |
$ npm -v | |
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment