Horje
Downloading and Installing npm and Node.js

The Node.js can be installed in multiple ways on a computer. The approach depends on the existing development environment in the system. There are different package installers for different environments. You can install Node.js by grabbing a copy of the source code and compiling the application. Another way of installing Node.js is by cloning the GIT repository in all three environments and then installing it on the system.

Installing Node On Windows (WINDOWS 11)

You have to follow the following steps to install the Node.js (20.12.0) on your Windows:

Step 1: Downloading the Node.js ‘.msi’ installer the first step to install Node.js on Windows is to download the installer. Visit the official Node.js website i.e https://nodejs.org/en/download/

Screenshot-(257)-(1)

Step 2: Running the Node.js installer.

Now you need to install the node.js installer on your PC. You need to follow the following steps for the Node.js to be installed.

  • Double-click on the .msi installer.
The Node.js Setup wizard will open.
  • Welcome To Node.js Setup Wizard.
Select “Next”
Screenshot-(258)
  • After clicking “Next”, End-User License Agreement (EULA) will open.
Check “I accept the terms in the License Agreement”
Select “Next”
Screenshot-(259)
  • Destination Folder
Set the Destination Folder where you want to install Node.js & Select “Next”
Screenshot-(260)
  • Custom Setup
Select “Next”
Screenshot-(261)
  • Ready to Install Node.js.

The installer may prompt you to “install tools for native modules”.

Select “Install”
Screenshot-(263)

Do not close or cancel the installer until the install is complete.

  • Complete the Node.js Setup Wizard.
Click “Finish”
Screenshot-(264)

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

To check that node.js was completely installed on your system or not, you can run the following command in your command prompt or Windows Powershell and test it:-

C:\Users\Admin> node -v
Screenshot-(265)

If node.js was completely installed on your system, the command prompt will print the version of the Node JS installed.

Step 4: Installing NPM .

You can run the following command, to quickly update the npm

npm install npm --global // Updates the ‘CLI’ client

To confirm NPM installation, type npm -v command.

npm -v
Screenshot-(266)-(1)

Also Read:




Reffered: https://www.geeksforgeeks.org


Node.js

Related
npm yarn npm yarn
NPM Husky NPM Husky
How to use NPM Trends to Pick a Javascript Dependency? How to use NPM Trends to Pick a Javascript Dependency?
How to Pull Item from an Array in Mongoose ? How to Pull Item from an Array in Mongoose ?
How to cache JSON data in Redis with NodeJS? How to cache JSON data in Redis with NodeJS?

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
17