Back to Setup

Nvm

_partials/nvm.md

latest762 B
Original Source

Node.js

Node.js is a JavaScript runtime to execute JavaScript code in the terminal. Let's install it with nvm, a version manager for Node.js.

In a terminal, execute the following commands:

bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v<NVM_VERSION>/install.sh | zsh
bash
exec zsh

Then run the following command:

bash
nvm -v

You should see a version. If not, ask a teacher.

Now let's install node:

bash
nvm install <NODE_VERSION>

When the installation is finished, run:

bash
node -v

If you see v<NODE_VERSION>, the installation succeeded :heavy_check_mark: You can then run:

bash
nvm cache clear

:x: If not, contact a teacher