This is the easiest way to get Node.js up and running, and it generally handles the path configuration for you.
-
Download the LTS Installer:
- Open your web browser and go to the official Node.js website: https://nodejs.org/en/download/
- You will see two main download options: "LTS" (Long Term Support) and "Current." Click on the "LTS" button. This will typically download the latest LTS version, which will be Node.js 22+ at the time of this writing.
- Select the macOS Installer (.pkg).