Install Windows NPM (Local)

Before starting the tutorial on how to install NPM, you must first know that NPM is already a package with Node.js. So if you want to use NPM, you must have installed the Node.js runtime on your computer. Maybe being a javascript developer is not easy especially if you have to create code from scratch. But if you are a Node.js user, you can be helped more with NPM (Node Package Manager). So that you can understand this article completely and easily, we will first explain the meaning of Node.js and NPM.  


Apa Itu Node.JS

Node.js is a platform built on the Chrome JavaScript runtime to easily build fast and scalable network applications. Node.js is an open source server environment and uses an I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications running on distributed devices. Node.js applications are written in JavaScript, and can be run in the Node.js runtime on OS X, Microsoft Windows, and Linux.

To install Node.js, the first step is to download the Node.js framework. The Node.js framework is available for various operating systems such as Windows, Ubuntu and OS X. Once the Node.js framework is installed, you can start building your first Node.js application.

Fitur Node.JS

The following are some of the important features that make Node.js the first choice of software developers.

Asynchronous dan Event Driven

All APIs from the Node.js library are asynchronous, i.e. non-blocking. This basically means that a Node.js-based server never waits for an API to return data. The server moves to the next API after calling it and the Node.js Event notification mechanism helps the server to get the response of the previous API call.

Very Fast & No Buffering

Built on Google Chrome's V8 JavaScript Engine, the Node.js library is extremely fast in code execution. Node.js applications never buffer any data. These apps only display data in chunks.

Single Threaded but Highly Scalable

Node.js uses a single threaded model with event looping. The mechanism helps the server to respond in a non-blocking manner and makes the server highly scalable compared to traditional servers that create limited threads to handle requests. Node.js uses a single threaded program and the same program so it can provide services for a much larger number of requests than traditional servers like Apache HTTP Server.

What is NPM

Node Package Manager or NPM is a tool that will be automatically installed if you have installed Node.js. This NPM can be said to have 2 functions. The first function, this NPM is an online repository. So you can easily share Node.js modules or applications online. If you need or want to use a module, you can find the module in this repository. You just need to download and install it on your computer. The second function is, NPM It can also be used as a command line to install the module.

How to Install NPM on Windows

To install NPM on Windows, you must install Node.js. Follow the steps below

Step 1: Download Node.JS

The first step is that you open the browser, then enter this urlhttps://nodejs.org/en/download/. Anda click the windows installer button to download the default version of node.js. As of this writing, version 12.16.3-x64 is the latest version.Node.js installer This includes NPM with version 6.14.4.

Install nodejs

Notes: There is a newer version available on the website. If you have an older system, you may be able to use the 32-bit version. You can also use the switch from the stable LTS version to the current version. But if you're new to Node.js or don't need a specific version, choose LTS.

Step 2: Install Node.JS and NPM

When the download is complete. Open the download link in your browser and click on the file. Alternatively, browse to the location where you saved the file and double-click it to start.

The system will ask if you want to run the software - click Run.

You will be greeted at the Node.js Setup Wizard - click Next.

Install Nodejs dan NPM

On the next screen, review the license agreement. Click Next if you agree to the terms and install the software.

Accept terms

The installer will prompt you for the installation location. Select the default location, unless you have a specific need to install it somewhere else - then click Next.

Destination folder

The wizard will let you select components to include or remove from the installation. Select the defaults, unless you have special needs. Click Next.

Custom setup

Finally, click the Install button to run the installer. When finished, click Finish.

Step 3: Verify Installation

Open a command prompt or PowerShell, and enter the following command:

node –v

The system will display the version of Node.js installed on your system. You can do the same for NPM:

npm –v

Cek versi node js dan npm

How to Update Node.JS and NPM

The easiest way to update Node.js and NPM is to download the latest version of the software. On the Node.js download page, select current latest features. There it will display the latest version. You can compare this with the version you have installed.

To upgrade, simply download the latest version and install it. The setup wizard will overwrite the old version, and replace it with the new version.

Install NPM

How to Uninstall Node.JS and NPM

You can remove Node.js from the Control Panel in Windows.

To do so:

Click the Start button>Settings>Apps. Find Node.js and uninstall it.

Uninstall nodejs

Conclusion

After you have installed Node.js and NPM, then it's time for you to build your application. To build your project online, of course you will need a reliable server that supports NPM. Please note that, Hosting Indonesia, Linux VPS, Cloud Server dan hosting lain di Exabytes sudah support NPM.

If you want full access to the server, VPS linux suitable for you. With KVM virtualization technology, the server is more stable and has maximum performance. You can also freely choose the operating system and control panel used. Come on, what are you waiting for, enjoy premium services from Exabytes with uptime server 99,98% dan network server 99,99%.

Nah itulah tadi artikel cara install Node.JS dan NPM serta sedikit pembahasannya. Terima kasih sudah membaca artikel ini sampai selesai, semoga artikel ini bermanfaat untuk semua.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.