Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to develop wide variety of applications like network applications, command line tools, web api, web applications
In this document, we will cover installation procedure of nodejs on windows 10 operating system
This guide assumes that you are using Windows 10. Before you begin, you should have a user account with installation privileges and should have unrestricted access to all mentioned web sites in this document.
Audience:
This document can be referred by anyone who wants to install latest nodejs on windows 10
System requirements
2. Click on windows Installer to download the latest version of node installer.
1. Click on the downloaded node-vxx.xx.xx.msi ( for example node-v10.15.0.msi) in previous step to start the installation which brings up below screen. Please click Next
2. By clicking next in previous step you will be asked to accept license, please accept by clicking checkbox and click Next
3. Click Next
4. Click Next
5. Click Install, this may need elevated permissions provided necessary rights requested
6. Click Finish
node -v
You should see an output like below (Note: Your version may vary depending on your date of installing as nodejs team make an aggressive release but make sure your node version is > v10.0.0)
npm -v
You should see an output like below (Note: Your version may vary depending on your date of installing as nodejs team make an aggressive release but make sure your npm version is > 5 )
console.log("Hello World Node!!")
node command line with file name as an argument will load, read, compile and execute the instructions from the file and execute them. Since we have one line of JS code which prints the text “Hello World Node” to console inside helloworld.js file you see the output as shown in above screenshot
Leave a Reply
Your email address will not be published. Required fields are marked *