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:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v<NVM_VERSION>/install.sh | zsh
exec zsh
Then run the following command:
nvm -v
You should see a version. If not, ask a teacher.
Now let's install node:
nvm install <NODE_VERSION>
When the installation is finished, run:
node -v
If you see v<NODE_VERSION>
, the installation succeeded ✔️ You can then run:
nvm cache clear
❌ If not, contact a teacher