-
Go to https://nodejs.org/en/download/current/ in your favorite web browser.
-
Click on the big green Windows Installer button to download the installer.
-
If your browser asks what you want to do with the file, click Save.
-
Once your browser finishes downloading the installer, click Run to start the installer.
-
Click Next once the Setup Wizard opens.
-
Check the checkbox to accept the License Agreement and click Next.
-
Stick with the default Destination Folder and click Next.
-
On the Custom Setup page, just click Next.
-
To complete the installation, click the Install button.
-
If Windows asks you if you want to allow the app to make changes to your device, click Yes.
-
Once the installer confirms that installation was successful, click Finish to close the installer.
Let's open a command prompt to see if we can now run the node program.
-
Click the Windows/Start button and type
node. Select the Node.js command prompt Desktop app to open a command prompt.
-
In the command prompt, type
where nodeand click Enter. It should print a path to thenode.exeexecutable.
-
Type
where npmand click Enter. It should print at least one path to thenpmbatch script.
-
Type
node -v && npm -vand click Enter. It should print the version numbers associated with each program.
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/.
-
Go to https://nodejs.org/en/download/current/ in your favorite web browser.
-
Click on the big green Macintosh Installer button to download the installer.
-
Once the dowload completes, click on the downloaded file in your browser to open the
.pkginstaller.
-
When the installer opens, click Continue.
-
When the License Agreement appears, click Continue.
-
To accept, click Agree.
-
Click Install.
-
When prompted, enter your user's password and click Install Software.
-
Once the installer confirms that installation was successful, click Close to close the installer.
Let's open a command prompt to see if we can now run the node program.
-
Hit Command ⌘ and Space and type
terminal. Select the Terminal (under Utilities) Application. -
In the terminal, type
which nodeand click Return. It should print a path to thenodeexecutable.
-
Type
which npmand click Return. It should print a path to thenpmexecutable.
-
Type
node -v && npm -vand click Return. It should print the version numbers associated with each program.
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/.



