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