-
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 node
and click Enter. It should print a path to thenode.exe
executable. -
Type
where npm
and click Enter. It should print at least one path to thenpm
batch script. -
Type
node -v && npm -v
and 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
.pkg
installer.
-
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 node
and click Return. It should print a path to thenode
executable. -
Type
which npm
and click Return. It should print a path to thenpm
executable. -
Type
node -v && npm -v
and 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/.