banner



How To Install Npm Modules In Windows

Node. js  is a cantankerous-platform surround that runs and executes JavaScript  codes exterior  the  browser. Since its outset release, N ode.js has gained massive popularity amid developers. As it  uses JavaScript, it is fast and easy to pick up and assets excellent scalability, making it a favourite  among spider web developers. The Node.js framework is available for all the major operating systems similar Windows, Ubuntu, and Mac.

          southward-logo.jpg                  

Are you ready to start working with node.js? Earlier anything else, let us understand  how to install node.js on windows 10.

In this tutorial, you will learn-

  • How to Download  & Install Node.js on Windows  10
  • How to uninstall Node.js on windows
  • How to Install NPM on Windows ten
  • Running your offset "Hell o World" application in Node.js

Prerequisites

Below we get started, here are a few organization requirements to download, install, and gear up React-Native on Windows 10.

Hardware requirements

  • RAM 4GB
  • CPU Intel Core i3 TM i3 HQ CPU @2.fifty GHz
  • ROM 256 GB

Software requirement

  • Chocolatey

Attention: You will also need a stable internet connexion considering we will be downloading most of this software.

Installation process

  • Stride-by-step procedure  to Install node.js on Windows 10

Undoubtedly, the first step to get ting  started on working with node.js is installing the software packet in your arrangement. Once done, follow the step-by-step tutorial on how to proceed to get the node.js framework successfully installed in your system. Nosotros will also look at how you can uninstall the program from your computer completely .

Step-1: Download node.js installer into your organization

Visit the official node.js site https://nodejs.org/en/download/ and click on Windows installer to download the necessary software in your organisation. The installer contains the NPM package. Based on the organization you want to install, choose 32-bit installer or 64-installer and continue.

Download node.js installer into your system

Notation:  When you click on download, you will exist asked to choose the f ile location y'all want to shop t he instal.msi  binary files.  Choose a secure file location  of your choice .

Download node.js installer into your system

Stride-ii: Run the installation

Once you choose the path, the side by side footstep is to double-click the instal. msi  binary files to initiate the installation process. Furthermore, you will exist asked for permission to run the awarding.

Alarm : On the open file security warning, in that location is a cancel option also. Don't click on the cancel option, or else you may peradventure need to restart the installation. You can utilise the back button to check your previous installation step.

On running the application, you will go along to an interface with a welcome bulletin. Click the "Adjacent" push button and proceed with the installation as shown in the image.

Run the installation

Pace-iii: Accept the terms of usage

Accept the terms of usage

Afterwards clicking the side by side selection, you will go an stop-user license agreement. Read the terms of using the software, and so click on next.

North.B. You will find a square box request you lot to agree with the terms, and only when you have read the terms, you volition be allowed to proceed farther.

Footstep-4: Specify the path

Once you accept accepted the terms and weather, the next step is to specify the path where y'all want to install node.js. Your file location is the path where you must install the node.js in your system.

Specify the path

One time yous have specified the path, click on the Next push button to proceed with the installation.

Footstep-five: Select the default options

On proceeding with the Adjacent option, the custom page setup volition open up up on the screen. Here you will get four icons equally stated below:

  • node.js runtime
  • NPM bundle manager
  • Online documentation shortcuts
  • Add to PATH

Select the default options

Select all the options equally default and then keep with the Adjacent selection.

Step-six Initiate the installation

After all these steps, you will encounter an install button to process the installation of node.js on Windows. Click on the install push button to initiate the installation of node.js on your Windows. Based on your system performance it may take a couple of minutes to install node.js on your system. In one case the installation is complete, you volition become a message on your screen as — Node.js has been successfully installed.

Initiate the installation

Footstep-7: Complete the installation

On clicking the End button, the process of installation of node.js is successfully completed. Congratulations! You have successfully installed node.js on your Windows 10.

Complete the installation

Verifying the install

To verify that the node.js has been successfully installed in your system, go to the command prompt and run information technology as administrator. Now use the following control to check the node. js  version installed in your system.

          node -v                  

The message v14.sixteen.1 verifies that node.js has been successfully installed on your windows, and you are set up to apply it.

Installation of Node.js and NPM on Windows 10

Alternative Method

Practise yous know there is likewise an alternative manner to download & install Node.js and NPM on Windows 10? Using a software package manager called Chocolatey, you can install node.js and NPM o n your machine. Let us understand how to install node.js and NPM on windows using Chocolatey  step by step. We will also look at how to uninstall the aforementioned with Chocolatey.

Installing Chocolatey.

The first process that y'all need to practise is to install Chocolatey in your arrangement. Have a note that the installation of Chocolatey requires ambassador access to the computer's command prompt to run.

  • Choose the option – get started every bit shown below:

Installing Chocolatey.

  • Once y'all go to the official Chocolatey website, select the private as shown in the pic.

Installing Chocolatey.

  • Open up Windows PowerShell and run as administrator. Now run the control and then press enter.

Get- ExecutionPolicy

  • On running this command, you lot will go a bulletin as Restricted. Once you get the message every bit Restricted, continue and and so run another  command and press enter.

Set- Execution Policy All Signed

Installation of Node.js and NPM on Windows 10

  • Yous will become a screen with execution policy changes. Select the A (Yeah to all) option and so press Enter.

Installation of Node.js and NPM on Windows 10

  • Copy and paste the command mentioned below:
          Gear up-          ExecutionPolicy           Bypass -Scope Procedure -Force;           [          Arrangement.Internet.ServicePointManager          ]::          SecurityProtocol           =          [          Arrangement.Net.ServicePointManager          ]::          SecurityProtocol           -          bor           3072;          iex           ((New-Object          Arrangement.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))        

Installation of Node.js and NPM on Windows 10

To check whether you take installed information technology well, open up the command prompt below:

          choco           -version                  

If yous have installed information technology well, you will encounter the display of the Chocolatey version you have installed on the screen as beneath:

Installation of Node.js and NPM on Windows 10

Boom! Chocolatey is now successfully installed in your system.

Install Node.js

Using Chocolatey that you accept just installed, now we can install Node.js in the system. Open up the command prompt every bit the administrator and put in the Chocolatey command prompt equally mentioned below:

          Choco install -y          nodejs.install                  

To confirm if it has installed correctly on the calculator, y'all demand to execute the command below on the reckoner control prompt, as an administrator:

          node --version                  

Installation of Node.js and NPM on Windows 10

If you take followed the steps correctly, the installation would take been successful and the message below volition display on your screen later the installation has been completed.

Later installing the Node.js, the Node Package Manager NPM automatically gets installed in the system. Run the control below to bank check the installation of NPM . The displayed message below verifies that the installation of NPM  is successful.

Installation of Node.js and NPM on Windows 10

Writing your first program on node.js

Now that you have successfully downloaded and installed node.js in your organisation, let's learn how to write a program using node.js

Follow the steps to write your offset plan.

  • Step-one:  Create a binder and name information technology. (Here we accept created a folder named Node Programs.
  • Step-2:  Open whatsoever lawmaking editor of your choice (hither we are using Visual Studio Code).

Installation of Node.js and NPM on Windows 10

  • Stride-iii:  Click on the file menu and open up the folder you just created.

Installation of Node.js and NPM on Windows 10

  • Step-four:  Once you open the folder, create a file and name it. (Here we have created a file named as welcome.js)

Installation of Node.js and NPM on Windows 10

  • Step-5:  Write your program and salve it using (Ctrl + Southward).
  • Stride-half dozen:  Start debugging using the shortcut f5.

Installation of Node.js and NPM on Windows 10

And that'south it! You have successfully created your first project using node.js.

(Goodbye-COVID-nineteen was the message we wanted to print and it is running successfully).

Uninstalling Node.js

Uninstalling node.js needs a manual process. Here is a step-by-step guide on how to uninstall node.js from your system.

  • Footstep-1:  Go to the file location where you accept stored node.js

Installation of Node.js and NPM on Windows 10

  • Footstep-2:  Select the node.js row and correct-click on it. Out of the three options bachelor, click on uninstall.

Installation of Node.js and NPM on Windows 10

  • Pace-3:  After clicking on the uninstall option, the uninstalling starts.

Installation of Node.js and NPM on Windows 10

In one case washed, you will successfully uninstall node.js from your system.

Summary

  • In this article we accept covered how to install Node.js with the help of  the MSI installation module  from the Node.js website. Likewise, we have also learned to install the necessary modules needed  to run a Node.js application.
  • Node.js can also be installed with the aid of a package manager Chocolatey. With the use of uncomplicated commands in the command prompt or in the Windows PowerShell as mentioned above, we accept seen how to download node.js using the Chocolatey packet manager that automatically downloads the necessary files and then installs them on the customer automobile.
  • Lastly, we accept learn ed about the uninstal lation of node.js completely from y'all r system.

In a nutshell, we have seen how to install node.js using different methods . That's all you need to become started with node.js. Yous are free to choose whatever terminal of your preference.

Keep in mind: Node.js was never made to tackle the process scaling issue but  made to address the I/O scaling outcome .

Ruby Flags:  While installing node. js , make the right option between a 32-bit installer and a 64-bit installer matching your system. For instance, if you take a 64-bit operating system  you will be unable to install the 32-version of node.js. Likewise, if you lot accept a 32-bit operating arrangement, you will exist unable to install the 62-version of node.js. Therefore, the primal hither is to know your system and proceed with the next steps.

Source: https://www.knowledgehut.com/blog/web-development/install-nodejs-npm-on-windows

Posted by: stewartfralke.blogspot.com

0 Response to "How To Install Npm Modules In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel