Node.js installation windows

Being one of the most potent JavaScript frameworks, Node.js has long served as the foundation for front-end development. Because of this, front-end developers all over the world choose to become skilled in Node.js. Once you have gotten a hold of the fundamentals, you can get started with the development. However, you must first install Node.js on your computer before you can proceed. We will walk you through the process of Node JS Installation in detail with the help of this blog.

What is node.js?

A cross-platform environment called Node.js allows JavaScript code to run and be executed independently of a browser. Node.js has experienced tremendous growth in prominence among developers since its initial release. Developers prefer it since it uses JavaScript because it is quick to learn, simple to use, and has outstanding scalability. All of the major operating systems, including Windows, Ubuntu, and Mac, support the Node.js framework.
Become a master of Node.JS by going through this HKR Node.JS Training

Downloading the installer is the first step in installing Node.js on a Windows computer. Visit https://nodejs.org/en/download/, the official Node.js website, and download the.msi file in accordance with your system environment (32-bit & 64-bit). Your computer will download an MSI installer.

Node.js Installation Windows?

There are various ways to install the Node on a computer. Your strategy is based on the system's current development environment. For various environments, there are several package installers. Obtaining a copy of the source code and developing the program will allow you to install Node. Clone the GIT repository in each of the 3 environments before installing Node as an additional method of installation.

Installing Node On Windows 10

To install Node.js on your Windows 10, follow these 3 steps.

1.Node.js Installation
2.NPM (Node Package Manager)
3.IDE or Text Editor

1.Node.js Installation

Before starting the Node JS installation procedure, make sure you have enough space and at least 4GB of RAM.

Step1: Downloading the Node.js 'msi' installer

Downloading the installer is the first step in installing Node.js on a Windows computer. Visit https://nodejs.org/en/download/, the official Node.js website, and download the.msi file in accordance with your system environment (32-bit & 64-bit). Your computer will download an MSI installer.

Node.js Installation Step 1

Step 2: Running the Node.js installer

You must now set up the node.js installer on your computer. To install Node.js, you must perform the actions listed below:-

  • To run the.msi installer, double-click it.
    The setup wizard for Node.js will launch.
  • Welcome To The Node.js Installation Wizard.
    Choose "Next

 Running the Node.js installer 

  • The End-User License Agreement (EULA) will open once you click "Next."
  •  Select "I accept the license agreement's conditions"
  • Choose "Next"                                                                                                                

The End-User License Agreement (EULA) Step 2

  • Destinations Folder
    Choose "Next" after choosing the destination folder for your Node.js installation. 

Destinations Folder step 2

  • Custom Setup
    Choose "Next" under Custom Setup                              

Custom Setup Step 2

  • Ready to install
  • Choose "Install."

Ready to install Node.js Step 2  

NOTE : This step entails administrative rights, a prompt stating as much will display.

Verify the prompt's "Administrator" status.

  • Setting up Node.js
    Before the setup is finished, do not close or cancel the installer.
  • The Node.js Setup Wizard must be finished.
    Hit "Finish"                               

 Complete the Node.js Setup Wizard Step 2

Node JS Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

Step 3: Verify whether Node.js was properly installed or not.

Run the following command at the command prompt or Windows Powershell to test whether node.js was fully installed on your system. -

C:\Users\Admin> node -v       
                                                                     

Command prompt Step 3

If node.js is fully installed on your computer, the command line will display the installed version.

Step 4: Updating the Local npm version

The package manager that comes with Node.js must be updated locally (if necessary) as the last step in the installation process. 

The following command can be used to fast update the npm.
npm install npm –global // Updates the ‘CLI’ client       

Step 5: Specify the path

Step 6: Select the default components to be installed

Step 7: Initiate the installation

Step 8: Complete the installation

2. NPM (Node Package Manager) Installation

An application's Node.js packages can be installed, updated, or removed using the Node Package Manager (NPM) command-line tool. Additionally, it serves as a repository for free Node.js packages online. The worldwide node community produces helpful modules and makes them available as packages in this repository.

NPM comes with the installation of Node.js. Validate NPM installation by typing the following command into the terminal or command prompt after installing Node.js.

C:\> npm -v

2.11.3

The following command can be used to update an earlier version of NPM to the most recent version.

C:\> npm install npm -g

Type npm help at the command prompt or terminal window to get NPM help.

C:\> npm help

The 2 operating modes used by NPM are global and local. Within the local mode, NPM simply performs actions for the specific local directory that impacts an application in that directory, as opposed to the global mode, which impacts all Node.js apps on the machine.

1. Locally installing package

For installation of any third-party module in your local Node.js project directory, use the following command.

C:\>npm install 

As an illustration, the command below will install ExpressJS in the MyNodeProj folder.

C:\MyNodeProj> npm install express

The node modules folder contains all of the modules that were installed via NPM. Express.js will be installed in the ExpressJS folder that will be created under the node modules folder in the root directory of your project by the aforementioned command.

Subscribe to our youtube channel to get new updates..!

2. Globally installing package

Additionally, NPM has the ability to install packages globally, allowing all node.js programs running on that machine to import and utilize the installed packages. Global packages are installed by NPM into the

//local/lib/node_modules folder.

To install the package worldwide, use the -g option in the install command. For instance, the subsequent program will install ExpressJS everywhere.

C:\MyNodeProj> npm install -g express

3. IDE or Text Editor

Now that the installation of Node.js is complete, you must begin to write the programs. You could either use one of the many free IDEs or several text editors to write your programs. The much more common IDEs and text editors used by Node.js developers are mentioned below.

1. Cloud9 :

As its names imply, Cloud9 is a cloud-based IDE that facilitates the creation of applications using well-liked JavaScript frameworks like NodeJS, Meteor, and others. In terms of coding, Cloud9 is among the most potent online code editors and debuggers. It offers a number of useful features, like life previewing, an image editor, a key binding editor, and many others.

2. IntelliJ :

Another IDE created by JetBrains that uses Java and Kotlin is IntelliJ IDEA. You must incorporate a NodeJS plugin into IntelliJ IDEA in order to  use its features, such as code assistance, code completion, syntax highlighting, and more, for your forthcoming NodeJS project.

3. Webstorm :

Prominent JavaScript IDE WebStorm was created by JetBrains. It is suitable for server-side development with NodeJS since it has excellent  and intelligent coding assistance capabilities like error detection, code completion, refactoring, and robust navigation functions for most JavaScript programming languages.

4. Brack :

Because it provides programmers with command line integration, inline editing, live previewing, processor support, and other features, the tool is highly favored as a Node JS IDE. Developers can run numerous NodeJS platforms, gulp scripts, and NodeJS tasks using brackets. The primary value  of the IDE includes an integrated syntax hint that supports many programming languages including Node JS, CSS, and HTML, and makes it easier for  developers to code.

5. Sublime :

It has a tonne of strong and cutting-edge features, including rapid project switching, split editing, and others. Additionally, Sublime Text provides  a variety of selecting choices to handle files more quickly, providing you with the best performance and the ability to personalize practically everything using straightforward JSON files.

Try running a Node.js file to see if your installation was a success or not.

Try typing the code below into your IDE or Text Editor.

console.log('Hello, welcome to HKR Trainings!');

Save the document as filename.js or another.js extension.

Then open the Node.js command prompt and go to the folder where the js file is located. Type the command shown below to show the content in your console when you have finished typing it.

Want to know more about AB Initio Tutorial

Node JS Training

Weekday / Weekend Batches

Conclusion:

In conclusion, we saw several different ways to install node.js. You don't require anything else to begin using node.js. You may select any terminal of your choosing.

Consider the fact that Node.js was designed to address the I/O scaling problem rather than to process the scaling problem.

This brings this article on installing Node.js to a close. We made an effort to make the node.js installation process as simple as possible for your benefit. We trust you now have a thorough understanding of the entire process. With this, your computer is now prepared to run any Node.js program. So. start experimenting and learning.

Related Article :

Find our upcoming Node JS Training Online Classes

  • Batch starts on 6th Dec 2022, Weekday batch

  • Batch starts on 10th Dec 2022, Weekend batch

  • Batch starts on 14th Dec 2022, Weekday batch

Global Promotional Image
 

Categories

Request for more information

Amani
Amani
Research Analyst
As a content writer at HKR trainings, I deliver content on various technologies. I hold my graduation degree in Information technology. I am passionate about helping people understand technology-related content through my easily digestible content. My writings include Data Science, Machine Learning, Artificial Intelligence, Python, Salesforce, Servicenow and etc.

Using the.msi installer from Node's official website, one may install Node.js on a Windows computer. Using the.pkg installer from Node's official website, one can install Node.js on your macOS device. Additionally, we may set up Node on macOS by utilizing the Homebrew package manager.

Take the following steps to install Node.js on Windows 10:

Step 1: Download the Node.js ‘.msi’ installer.

Step 2: Run the Node.js installer

Step 3: Verify whether Node.js was properly installed or not.

Step 4: Update the Local npm version

The default setting for the prefix config is the node's installation directory. Typically, this is /usr/local. This is the precise address of the node.exe binary on Windows.

A Node.js package manager, or module manager if you like, is called NPM. Thousands of free packages are available for download and usage at www.npmjs.com. When you install Node.js, the NPM software is also installed on your machine.

Yes, both the node & npm executables are included in the nodejs package. Although the code for each has its own repository, both are formed when a product is packaged.