Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The Best Way to Install Node.js Ubuntu
$ sudo apt-get purge nodejs && sudo apt-get autoremove && sudo apt-get autoclean
$ curl -o- | 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