Node.js includes everything you need to execute a program written with JavaScript.
If this is your first time going through the setup guide on your current machine, skip this “Verify” section and move on to the “Install” section below
In your terminal, run:
node --version
IF the output is this version or higher:
v17.8.0
Continue to next page
else if the output is not similar to the above:
Continue with instructions on this page.
Run the command:
brew install node
It will take a minute for the download and installation process to complete.
AT THIS POINT YOU
MUST
RESTART YOUR TERMINAL
After restarting, verify your Node.js version by running the command:
node --version
Expected output should be this version or higher:
v17.8.0
Verify that Node.js is working:
node
5 + 5
and hit enter
10
. If you get 11
your computer is broken. ;)Did you get similar output for both?
If not … head here