Installing Nodejs
- Head over to nodejs.org/en/download
- Download the LTS Windows Installer file
- Execute the installer
-
Make sure you have
curl
installed:or for Mac OS X:sudo apt update sudo apt install curl
brew install curl
-
Install nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash
-
Add nvm to the PATH so we can use it right away without logging out and back in:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
-
Install node using nvm:
nvm install --lts