The simple version
JavaScript usually runs in a browser. Node.js lets JavaScript run on your Mac too. Many tools need it.
node
Runs JavaScript on the Mac.
npm
Comes with Node. It installs JavaScript tools later.
Optional check
This may not work yet. That is okay. We have not installed Node yet.
Type only the lines marked TYPE THIS. Do not type lines marked MAC REPLIES or NOTE.
TYPE THIS
node -vMAC REPLIES
If Node is installed, the Mac replies with v and some numbers.NOTE
If the Mac says command not found, keep going. That is normal before install.