How to Install node js windows 10
![](./upload/news/image_1592801816_58898547.png)
Installation of node.js framework is the first step to start building the Node.js applications. The Node.js platform is available for a range of operating systems , from Windows to Ubuntu and OS X.
You can start building your first Node.js applications once the Node.js framework is enabled.
This article is intended to demonstrate the installation process of Node.Js and Npm.
Lets start by downloading the latest version of node.js from the official website https://nodejs.org/en/ .
Download the recommended version, in our case, it is 12.14.1 LTS.
Install node js windows 10
Click on the downloaded .exe file and start installing the Node.Js.
Click Next to continue the installation process
Accept the terms and conditions and click on Next button to continue installing
Select the location for installing the application and click on Next
npm install windows
Install npm Package Manager using node.js MSI installer
As you can see in the above screen shot. it is also going to install the npm package manager in our system.
Lets click Next and continue the installation process.
Installing Chocolatey using node.js installer
If you click on this checkbox it is going to install the chocolatey in your machine.
windows package manager
Chocolatey is a command-line application installer for Windows-based on a developer-centric package manager called NuGet. Unlike manual installations, Chocolatey adds, updates, and uninstalls programs in the background requiring very little user interaction.
Click Next to continue on next screen
Click on Install to finish the installation process
We are done with the installation process of Node.js and npm. Open a command prompt and type npm –version to ensure the successful installation of npm.
Creating node.js hello world
Open Notepad and paste the below code to run the Node application.
var http = require("http");
http.createServer(function (request, response) {
// Send the HTTP header
// HTTP Status: 200 : OK
// Content Type: text/plain
response.writeHead(200, {'Content-Type': 'text/plain'});
// Send the response body as "Hello World"
response.end('Hello World from Beetechical
');
}).listen(8081);
// Console will print the message
console.log('Server running at http://127.0.0.1:8081/');
Save the file with .js extension to run the file on a node server.
Open the command prompt and navigate to the file location by using the cd command.
Once you run the file using node, You should be able to open the application on http://127.0.0.1:8081 or http://localhost:8081 .
So, we are able to run our javascript...