How to Install Node.Js on Windows
This wikiHow teaches you how to download and test Node.Js on a Windows computer. Open the Node.Js download site. Go to https://nodejs.org/en/ in your computer's web browser.
Part 1 of 2:
Installing
-
How to Install Node.Js on Windows Picture 1
Open the Node.Js download site. Go to https://nodejs.org/en/ in your computer's web browser. -
How to Install Node.Js on Windows Picture 2
Click the Current option. It's a green box on the right side of the page. Doing so prompts the Node.Js setup file to download onto your computer. -
How to Install Node.Js on Windows Picture 3
Double-click the setup file. You'll find it in your computer's default downloads folder. -
How to Install Node.Js on Windows Picture 4
Click Next. It's at the bottom of the setup window. -
How to Install Node.Js on Windows Picture 5
Check the "I accept" box. You'll find this below the terms of use. -
How to Install Node.Js on Windows Picture 6
Click Next. It's at the bottom of the window. -
How to Install Node.Js on Windows Picture 7
Specify an installation location. If you want to change the default installation location (which isC:Program Filesnodejs
), do the following:- Click Change... below the current installation path.
- Click the "Look in" drop-down box.
- Click Program Files.
- Select the folder in which you want to install Node.Js.
- Click OK.
-
How to Install Node.Js on Windows Picture 8
Click Next twice. It's at the bottom of the window. -
How to Install Node.Js on Windows Picture 9
Click Install. You'll see this option at the bottom of the window. Node.Js will begin installing. -
How to Install Node.Js on Windows Picture 10
Click Finish when prompted. At this point, Node.Js is installed. You can check its installation success by using Command Prompt.
Part 2 of 2:
Testing Your Installation
-
How to Install Node.Js on Windows Picture 11
Open StartHow to Install Node.Js on Windows Picture 12
-
How to Install Node.Js on Windows Picture 13
Search for Command Prompt. Type in command prompt to do so. -
How to Install Node.Js on Windows Picture 14
ClickHow to Install Node.Js on Windows Picture 15
-
How to Install Node.Js on Windows Picture 16
Enter the "version" command. Type in node -v and press ↵ Enter. You should be greeted by a message that says "v Number" where "Number" is the version number of the Node.Js program you downloaded. -
How to Install Node.Js on Windows Picture 17
Install a package if necessary. If you want to try testing Node.Js' ability to install a package, type npm install -g http-server into Command Prompt and press ↵ Enter. You should see a progress bar appear in Command Prompt, and the "http-server" extension should be installed to your Node.Js installation folder. -
How to Install Node.Js on Windows Picture 18
Troubleshoot a bad installation. If you can't get Node.Js to work on your computer, do the following to reset it:- Open the installation folder.
- Find the "nodejs" folder and delete it.
- Double-click the Node.Js installation file to restart the installation.
- Use the default settings to install Node.Js.
- If this process doesn't work, try using the LTS installation file instead of the Current installation file. You can find it on the Node.Js download site.
4 ★ | 1 Vote
You should read it
- NPM in Node.js
- REPL Terminal in Node.js
- Schema validation in Node.js using Joi
- Instructions for installing Node.js
- Event Loop in Node.js
- Concept of Buffer in Node.js
- Read the File record in Node.js
- Utility Module in Node.js
- What is Node.js?
- 10 things not to do when running Node.js application
- Hello World program in Node.js
- Global objects in Node.js