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 --versionIF the output is this version or higher:
v17.8.0Continue to next page
else if the output is not similar to the above:
Continue with instructions on this page.
Run the command:
brew install nodeIt will take a minute for the download and installation process to complete.
AT THIS POINT YOU
MUSTRESTART YOUR TERMINAL
After restarting, verify your Node.js version by running the command:
node --versionExpected output should be this version or higher:
v17.8.0
Verify that Node.js is working:
node5 + 5 and hit enter
10. If you get 11 your computer is broken. ;)Did you get similar output for both?
If not … head here