You will now install NVM (node version manager) and Node.js. NVM is a convenient tool to manage and install Node.js on your computer. Node.js itself is a runtime that can run JavaScript code outside of browsers.
Open a new terminal and run the command curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
Close the terminal and open a new terminal
Type the command nvm --version and check that the version of nvm is printed in the terminal
You will now install the LTS version of node using the command nvm install --lts
Type the command nvm use --lts to use the LTS version of node
Type the command node --version to check if node is correctly installed.
You will now install NVM (node version manager) and Node.js. NVM is a convenient tool to manage and install Node.js on your computer. Node.js itself is a runtime that can run JavaScript code outside of browsers.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
nvm --version
and check that the version of nvm is printed in the terminalnvm install --lts
nvm use --lts
to use the LTS version of nodenode --version
to check if node is correctly installed.