Skip to content

Instantly share code, notes, and snippets.

@phellipeandrade
Last active January 15, 2017 19:24
Show Gist options
  • Save phellipeandrade/7916c5968b2ef2fb2e51cea5a5689e60 to your computer and use it in GitHub Desktop.
Save phellipeandrade/7916c5968b2ef2fb2e51cea5a5689e60 to your computer and use it in GitHub Desktop.
The Best Way to Install Node.js Ubuntu
$ 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