Last active
August 18, 2021 08:50
-
-
Save vasilii-b/935fe2386028e81211fc79b2bcd77773 to your computer and use it in GitHub Desktop.
Install latest version of Node.js (Linux, MacOS)
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
| # if Node.js not yet installed | |
| sudo curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n | |
| sudo bash n lts | |
| # Now node and npm are available | |
| sudo npm install -g n && | |
| sudo n stable && | |
| echo "Latest node was installed." && | |
| node -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment