# Installing Node.js ## Windows ### A: Download the Node.js Windows Installer 1. Go to https://nodejs.org/en/download/current/ in your favorite web browser. 2. Click on the big green Windows Installer button to download the installer. windows01 3. If your browser asks what you want to do with the file, click Save. windows02 ### B: Run the Node.js Windows Installer 1. Once your browser finishes downloading the installer, click Run to start the installer. windows03 2. Click Next once the Setup Wizard opens. windows04 3. Check the checkbox to accept the License Agreement and click Next. windows05 4. Stick with the default Destination Folder and click Next. windows06 5. On the Custom Setup page, just click Next. windows07 6. To complete the installation, click the Install button. windows08 7. If Windows asks you if you want to allow the app to make changes to your device, click Yes. windows09 8. Once the installer confirms that installation was successful, click Finish to close the installer. windows10 ### C: Verify Node.js installation on Windows Let's open a command prompt to see if we can now run the `node` program. 1. Click the Windows/Start button and type `node`. Select the Node.js command prompt Desktop app to open a command prompt. windows11 2. In the command prompt, type `where node` and click Enter. It should print a path to the `node.exe` executable. windows12 3. Type `where npm` and click Enter. It should print at least one path to the `npm` batch script. windows13 4. Type `node -v && npm -v` and click Enter. It should print the version numbers associated with each program. windows14 Congratulations! Now you can run your own JavaScript files on your local computer using Node.js! For next steps, if you want a decent lightweight code editor, download and install Atom from https://atom.io/. windows15 ## Mac ### A: Download the Node.js Macintosh Installer 1. Go to https://nodejs.org/en/download/current/ in your favorite web browser. 2. Click on the big green Macintosh Installer button to download the installer. ![mac01](https://cloud.githubusercontent.com/assets/1929625/25721721/879e4df2-30df-11e7-932a-cb7a03475f67.png) 3. Once the dowload completes, click on the downloaded file in your browser to open the `.pkg` installer. ![mac02](https://cloud.githubusercontent.com/assets/1929625/25721722/879fcde4-30df-11e7-88ab-b71717ab0776.png) ### B: Run the Node.js Macintosh Installer 1. When the installer opens, click Continue. mac03 2. When the License Agreement appears, click Continue. mac04 3. To accept, click Agree. mac05 4. Click Install. mac06 5. When prompted, enter your user's password and click Install Software. mac07 6. Once the installer confirms that installation was successful, click Close to close the installer. mac08 ### C: Verify Node.js installation on Mac Let's open a command prompt to see if we can now run the `node` program. 1. Hit Command ⌘ and Space and type `terminal`. Select the Terminal (under Utilities) Application. 2. In the terminal, type `which node` and click Return. It should print a path to the `node` executable. mac09 3. Type `which npm` and click Return. It should print a path to the `npm` executable. mac10 4. Type `node -v && npm -v` and click Return. It should print the version numbers associated with each program. mac11 Congratulations! Now you can run your own JavaScript files on your local computer using Node.js! For next steps, if you want a decent lightweight code editor, download and install Atom from https://atom.io/. ![mac12](https://cloud.githubusercontent.com/assets/1929625/25721732/87baad1c-30df-11e7-8959-8d1ef55eedf5.png)