Install Node JS on Windows. The Quick Guide (TL; DR) to get node.JS Installed on Windows

One of the simplest ways how to install node.Js is to go to the official website, download the installation file and install it. Later, the developers were faced with a situation where they need to change the Node version.JS for another or update the current version.This is still possible. Install another version from the official site, but how many GCDs have already been installed in the system?

Maybe this is a good time to delete them all and configure the ability to switch between nodes in seconds, always knowing the number of installed versions and be able to delete any of them with one simple team.

About everything in order, we must delete the old versions of the node and everything related to this. You are lucky if you have installed past versions using Homebrew. Homebrew method is one of the simplest options for installing and deleting a node on a poppy.

Write this team in the terminal. Brew will delete all installed node versions.JS

After that, it is best to start Brew Cleanup, this will remove all unused dependencies and folders.

If your node.JS was installed differently, this is not a problem. You can delete it manually. There are a bunch of folders, they can be removed one by one through a fireword or terminal.

List of folders where node are located.JS and NPM

  • node and/or node_moudules in the folder/usr/local/lib
  • node and/or node_moudules in the/usr/log/include folder
  • node, node-debug, and node-gyp in/USR/Local/bin
  • .NPMRC in your home directory ( These are NPM settings, do not delete this file if you want to reinstall Node.JS )
  • .NPM in your home directory
  • .node-hyp in your home directory
  • .node_repl_history in your home directory
  • node in/usr/local/share/man/man1/
  • NPM V/USR/Local/Share/Man/Man1/
  • node.D V/USR/Local/Lib/Dtrace/
  • node V/OPT/Local/Bin/
  • node in /OPT /Local /Include /
  • node_modules V/OPT/Local/Lib/
  • node in/usr/local/share/doc/
  • node.STP V/USR/Local/Share/Systemtap/Tapset/

If you do not want to manually look for and delete all these folders and files, you can enter one simple command into the terminal:

This team does not touch your home directory, so in the future you can decide for yourself what to do with the preserved files.

Now we can delete all global packages installed with NPM

install, node, windows, quick

After all these commands, node.JS and NPM will be completely removed from your computer.

After cleaning, we can continue with the installation of a new version of Node.JS. But we will not do it in a straight way. Because if we do it according to the usual, we will still have the same problem with a bunch of versions in the future.

To solve this problem, we must install an additional small script: NVM

This script has the only dependence. installed Command Line Tools. If you still have not been installed, you must launch the command in the terminal:

So we are ready to install NVM. The simplest way to make a script.

0.37.2. Latest version on the day of writing an article. The version can be checked on the NVM page in Github

Of course, this can be installed manually. You need to enhance the repository and add the necessary files to PATH. Detail instructions described in NVM Readme. It will be useful if you need to use NVM in CI Piplas. I would recommend adding NVM to Docker Image, which uses your Piplas.

Не забудьте перезапустить окно терминала для обновления переменных окружения

We almost finished. Now we can easily install any version of node.JS. For example, this team will install the latest version:

If you want to install the LTS version, but with the latest version of the NPM, do the following:

Using flags, like.-LTS you can use any version.

In order to see the list of installed versions, you need to run the command:

After installation, you need to choose a default version for your system:

A similar script is available for Windows: Node Version Manager (NVM) For Windows. This is another project that does the same. You can also install/delete/display the list and switch any version of Node.JS

  • Simple installation/removal of any version of node.JS
  • The best script for switching between nodes.
  • Removal is as simple as installation

You will feel this in the future, especially when the next time you update your node.JS.

How to Install Node.js and npm on windows

STEP 1: Download node.JS Installer

In a Web Browser, Navigate to https: // nodejs.org/en/download/. Click The Windows Installer Button to Download The Latest Default Version. At the Time This Article Was Written, Version 10.16.0-X64 Was The Latest Version. The node.JS Installer Includes The Npm Package Manager.

NOTE: There Are Other Versions Available. IF YOU HAVE An Older System, You May Need The 32-bit Version. You can also use the top Link to Switch from the Stable LTS Version to the Current Version. IF YOU ARENW To NODE.JS or Don’t NEED A SPECICE VERSION, Choose LTS.

STEP 2: Install Node.JS and NPM from From Browser

Once the Installer Finishes Downloading, Launch it. Open The Downloads Link in Your Browser and Click The File. Or, Browse to the Location Where You have Saved the File and Double-Click it to launch.

The System Will Ask If You Want to Run The Software. Click Run.

You will be welcomed to the node.JS Setup Wizard. Click Next.

On the Next Screen, Review the License Agreement. Click Next IF You Agree to the Terms and Install The Software.

The Installer Will Prompt You For the Installation Location. LEAVE The Default Location, Unless You have A SPECICE NEED to Install Itsewhere Else. The Click Next.

The Wizard Will Let You Select Components to Include or Remove from the Installation. Again, Unless You have a specific Need, Accept the Defaults by Clicking Next.

Finally, Click the Install Button to Run The Installer. Wen it Finishes, Click Finish.

STEP 3: Verify Installation

Open A Command Prompt (Or PowerShell), And Enter The Following:

The System Shoup Display The Node.JS Version Installed on Your System. You can do the same for npm:

How to update node.js and npm on windows

The Easiest Way to Update Node.js and npm is to download the later Version of the Software. On the node.JS Download Page, Right Below The Windows Installer Link, IT Will Display The Latest Version. You can compare this to the view you have installed.

To upgrade, download the Installer and Run it. The Setup Wizard Will Overwrite the Old Version, and Replace it with the New Version.

Installation of node.JS on Windows

The Node Can atalled in Multiple Ways on A Computer. The Approach Used by You Depends on the Existing Development Environment in the System. There are Different Package Installer for Different Environments. You can Install Node by Grabbing a Copy of the Source Code and Compiling the Application. Another Way of Installing Node is by cloning the git repository in all the Three Environments and the Installing it on the System.

Installing Node on Windows (Windows 10):

You have to follow the following stps to install the node.js on your windows:

STEP-1: downloading the node.js ‘.MSI ’ONSTALLER.

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/and download the.MSI File According to Your System Environment (32-bit 64-bit). An Msi Installer Will Be Downloaded On Youth System.

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:-

The node.JS Setup Wizard Will Open.

Check “I Accept the Terms in the License Agreement”

Set the Destination Folder What You Want to Install Node.JS Select “Next”

A Prompt Saying. “This Step Requires Administration Privileges” Will Appear.

Authenticate the Prompt as an “administrator”

Do Not Close Or Canceel The Installer Until the Install Is Complete

STEP 3: Verify that node.JS Was Properly Installed or not.

To check that node.JS WAS COMPLETELYTLLED ONTEM SYSTEM or Not, YOU CAN RUN THE FOLLOWING COMMAND in your Comand Prompt Or Windows PowerShell and Test it:-

If node.JS WAS COMPLETELYTELD ONTEM, The Command Prompt Will Print the Version of the Node.JS Installed.

STEP 4: Updating the Local NPM Version.

The Final Step in Node.JS Installed is the updation of your local NPM Version (IF Required). The Package Manager that Comes Bundled with Node.JS.

You can run the following commander, to Quickly Update the NPM

NPM Install NPM –GLOBAL // Updates the ‘Cli’ Client

  • You do not note to do avything to the System Variabs as the Windows Installer Takes Care of the System Variables Itself While Installing Through The.MSI Installer
  • IF YOU USE ANY OTHER FORMAT For Installing Node.JS on your PC, You Shoup Put The System Variable Path for Node.JS as follows:

Path: C: \ Users \ [Username] \ Appdata \ Roaming \ NPMC: \ Program Files \ Nodejs (Path to the Nodejs Folder)

Users Who have Contributed to this File

  • Open with Desktop
  • View Raw
  • Copy Raw Contents Copy Raw Contents

Depending on What Platform or Features You Need, The Build Process May Differ. After You’ve Built a Binary, Running the Test Suite To Confirm That The Binary Works as Intended is A Good NEXT STEP.

IF You Can Reproduce a Test Failure, Search for it in the Node.JS Issue Tracker Or File a New Issue.

This List of Supported Platforms Is Current as Branch/Release to Which Its Belongs.

Node.JS Relies On V8 and Libuv. We Adopt a Subset of Their Supported Platforms.

  • Tier 1: These Platforms Represent the Majority of Node.js users. The node.JS Build Working Group Maintains Infrastructure for Full Test Coverage. Test Failures on Tier 1 Platforms Will Block Releases.
  • Tier 2: These Platforms Represent Smaller Segments of the Node.JS User Base. The node.JS Build Working Group Maintains Infrastructure for Full Test Coverage. Test Failures on Tier 2 Platforms Will Block Releases. Infrastructure Issues May Delay the Release of Binaries for these Platforms.
  • Experimental: May Not Compile or Test Suite May Not Pass. The Core Team Does Not Create Releases for Th Thorms. Test Failures on Experimental Platforms Do Not Block Releases. Contributions to IMPROVE SUPPORT FOR THE PLATFORMS ARE WELCOME.

Platforms May Move Between Tiers Between Major Release Lines. The Table Below Will Reflect Those Changes.

Node.JS Compilation/Execution Support Dependes on Operating System, Architecture, and Libc Version. The Table Below Lists The Support Tier for Each Supported Combination. A List of Supported Compile Toolchains is Also Supplied for Tier 1 Platforms.

For Production Applications, Run Node.JS on Supported Platforms Only.

Node.JS does not Support a Platform Version IF A Vendor Has ExpireD Support for it. In Other Words, Node.JS does not Support Running on End-OF-Life (Eol) Platforms. This is True Regardless of Entries in the Table Below.

Operating System Architectures Versions Support Type Notes
GNU/Linux X64 Kernel = 4.18 1. Glibc = 2.28 Tier 1 E.G. Ubuntu 20.04, Debian 10, Rhel 8
GNU/Linux X64 Kernel = 3.10, musl = 1.one.19 Experimental E.G. Alpine 3.eight
GNU/Linux x86 Kernel = 3.10, glibc = 2.17 Experimental DownGraded as node.JS 10
GNU/Linux ARM64 Kernel = 4.18 1. Glibc = 2.28 Tier 1 E.G. Ubuntu 20.04, Debian 10, Rhel 8
GNU/Linux ARMV7 Kernel = 4.18 1. Glibc = 2.28 Tier 1 E.G. Ubuntu 20.04, Debian 10
GNU/Linux ARMV6 Kernel = 4.14, Glibc = 2.24 Experimental DownGraded as node.JS 12
GNU/Linux PPC64le = Power8 Kernel = 4.18 1. Glibc = 2.28 Tier 2 E.G. Ubuntu 20.04, Rhel 8
GNU/Linux S390X Kernel = 4.18 1. Glibc = 2.28 Tier 2 E.G. Rhel 8
Windows x64, x86 (Wow64) = Windows 10/Server 2016 Tier 1 2. 3
Windows x86 (native) = Windows 10/Server 2016 Tier 1 (Running) / Experimental (Compiling) 4
Windows x64, x86 Windows 8.1/server 2012 Experimental
Windows ARM64 = Windows 10 Tier 2 (Compiling) / Experimental (Running)
MacOS X64 = 10.fifteen Tier 1 For notes ABOUT COMPINATION See 5
MacOS ARM64 = 11 Tier 1
Smartos X64 = 18 Tier 2
AIX PPC64BE = Power8 = 7.2 TL04 Tier 2
FreeBSD X64 = 12.2 Experimental

Depending on the Host Platform, The Selection of Toolchains May Vary.

Operating System Compiler Versions
Linux GCC = 8.3
Windows Visual Studio = 2019 with The Windows 10 SDK on A 64-bit HOST
MacOS Xcode = 11 (Apple llvm = 11)

Official Binary Platforms and Toolchains

Binary Package Platform and Toolchain
AIX-PPC64 AIX 7.2 TL04 ON PPC64BE with GCC 8
Darwin-X64 MacOS 10.15, Xcode Command Line Tools 11 with.mmacosx-overSion-min = 10.fifteen
Darwin-Arm64 (And.PKG) MacOS 11 (ARM64), Xcode Command Line Tools 12 with.mmacosx-overSion-min = 10.fifteen
Linux-Arm64 Rhel 8 With GCC 8 6
Linux-Armv7l CROSS-COMPELED ON UBUNTU 18.04 x64 with Custom GCC Toolchain
Linux-PPC64le Rhel 8 With GCC 8 6
Linux-S390x Rhel 8 With GCC 8 6
Linux-X64 Rhel 8 With GCC 8 6
Win-X64 and Win-X86 Windows 2012 R2 (X64) with Visual Studio 2019

Openssl-1.one.1 Requires The Following Assebler Version For Use of ASM Support on X86_64 and IA32.

AVX-512 IS Disabled for Skylake-X by Openssl-1.one.one.

  • GAS (GNU Assembler) Version 2.23 or Higher
  • Xcode Version 5.0 or Higher
  • LLVM Version 3.3 or Higher
  • Nasm Version 2.10 or higher in windows

IF Compiling Without One of the ABOVE, Use Configure with the.-Opensl-No-Sasm Flag. Otherwise, Configure Will Fail.

Supported Platforms and Toolchains Change with Each Major Version of Node.JS. This Document is Only Valid for the Current Major Version of Node.JS. Consult Previous Versions of this Document for Older Versions of Node.js:

Building node.JS on Supported Platforms

The node.JS Project Supports Python = 3 For Building and Testing.

Name Already in Use

A TAG ALREADY Exists with The ProvideDed Branch Name. Many Git Commands Accept Both Tag Tag and Branch Names, So Creating this Branch May Cause UNEXPECETED BEHAVIR. Are you Sure You Want to Create This Branch?

This comit sores not belong to ainch on this repository, and May Belong to a fork outside of the repository.

  • Open with Desktop
  • View Raw
  • Copy Raw Contents Copy Raw Contents

Follow the link: https: // nodejs.org/EN/Download/Current/Select the right OS and format:

install, node, windows, quick

Click on 32 or 64 bit installer (.Msi) depending on your system. After downloading the installer, start it. Click Next: note that we agree with the terms of the license: we choose the way where the Node is installed.JS: Leave the settings by default: click Install: We are waiting for Node for now.js establish what the following window will inform us: click Finish. The installation is completed. Congratulations! Check or everything was installed correctly. Run the command line window (Command Prompt). To do this, holding the Win button click R. In the window that opens, write cmd and click OK. In the window that opens, we write the Node –V command click Enter. The version of the installed node should be displayed on the screen.js:

Follow the link: https: // git-scm.COM/Downloads select the right OS and format:

We read the terms of the license, and click Next: mark all the points in the settings (creating icons on the desktop, integration with the conductor, installing the default program for files with extension.Git.SH), click Next: leave the default settings (GIT command will be available in the command line window), click Next: leave the default settings (setting the end of the line at the Checkout and Commit), click NEXT: leave the setting by default (setting up the terminal emulator windows), click Next: leave the default settings (additional caching and access settings), click Install: we are waiting for the installation to complete. Celebrate the first option (launch of the Git Bash terminal), click: Finish: The terminal window should start. We recruit Git.-Version. If everything went successfully, then the installed version of Git will be displayed:

IDEA Webstorm-IDE for web development, includes support for HTML, CSS, JS (client and server nodejs), git.

Run the installation. Click Next: select the path where webstorm is installed: select the types of files that will open in Webstorm by default. Click Next: leave the name of the folder in the starting menu by default. Press Install: Launch Webstorm after installing for configuration. Click Finish: at the first launch, the program will ask you to specify a configuration file. If this is not, then we celebrate the last point: we read and accept the privacy policy: we note that we will use the test 30 daily period. Click Evaluate :: We accept the terms of the license. Click Accept: In the bottom of the window, click Configure and select the first menu item. Settings: proceed to setting.

STEP 5: Go Build Applications, Apis, Tools, and with Node.JS!

Now you’ve got node.JS on Windows Machine. It’s Time to Start Exploring!

Luckily, We’ve Got Your Back. We’ve Written a Bunch of Articles to Help You Get Started with Node.JS! IF You’re Interest in Exploring ES6, YOU SHOULD CHECK OUT OUR ARTICLE OOME OF THE MOST EXCITING ES6 Features in Node.JS. IF YOU’RETESTEDD in Ways to Collaboate with your team a bitter, you shit check outtorial on using eslint in Improval Team Collaboration Codigh. Maybe You’d Just Like to Start Deplictions You’re About to Build? In that case, take a peek at sur guide on How to Deploy Node.JS Apps on Linux with Systemd!

That said, if you want to keep in touch with node.JS and the Surrounding Ecosystem, You Shoup Go Follow @nodesource on ! We’ll Keep You Updated with Important News from the Node.JS Project, and Share the Best Node.JS Tutorials, Guides, and Tools That the Community Has to Offer.

Preface

Node. is not a regular Desktop program. It will not be installed as Word or Photoshop and you will not have a shortcut on the desktop. It can only be used with console instructions (with which you should at least a little know). At first, it will seem to you that it is not convenient, but soon you will get used to it and everything will fall into place.

NODE installation.JS and NPM very simple. All you need to do is go to the official website of the developer, download the file and install it on your computer.

Stages of installation

  • Download Windows installer (.MSI File) from the official Node website.JS.
  • Run the installer (.MSI file that was downloaded in the first stage).
  • Follow all the installer instructions.
  • Restore the computer. Attention! Without rebooting a computer, you cannot start node.JS.

In order to make sure that everything was correctly installed follow three simple stages below.

Test Node.JS. Open Windows console and enter node.v.

We test NPM. Open Windows console and enter NPM.v.

Create a file. Create any file, I’ll call it HELLO.js and enter Console.log (“node.js is installed “);. After that, using the Node command, I will call the Hello file.JS: Node Hello.js. this should bring you “node.JS is Installed.””.

Check the work of Node.JS

On your virtual server, I have it Openserver/Domains:

Run the command line. If you do not know how to start it, then cross the start. Standard programs. Perform

Windows command line

2.one. Write in this line: NPM.v

If we see a version (I have 6 on the screen.7.0), then everything is ok!

Checking the work of Nodejs

2.2. Here, in the console, go to the Node folder: CD Node and the DIR command check the contents of the folder. We observe the presence of our index.JS

2.3. We make compilation with the command: node index

node index is an abbreviated team. an analogue of Node./index.js (above on the screen). T.e. you can not specify the path to the file, node.JS by default itself searches in the root index file Index.JS.

2.four. And here it is, the long.awaited result: Hello, World!

Everything is working! Congratulations! Or not? Write.

This article was written specifically for a series of GULP lessons, because there I refer to the need for the installed Node.JS. Now it will be clear how to do it.

Removing old versions

Before installation, it is necessary to remove old versions of the environment if they were previously installed. The presence of previous versions can lead to conflicts.

Check the system for NODE versions.JS. To do this, in CMD (to start it, press Winr, enter CMD and click Enter) We perform the NVM List command:

As you can see, we have installed several versions. We delete them:

  • We execute the NPM Cache Clean command.-Force.
  • In “Installation and Removing Programs” we delete node.JS.
  • We reboot the computer.
  • We delete the following catalogs. Some of them may exist, and some, on the contrary, are absent:
  • C: \ Program Files (x86) \ nodejs
  • C: \ Program Files \ Nodejs
  • C: \ Users \\ Appdata \ Roaming \ NPM
  • C: \ Users \\ Appdata \ Roaming \ NPM-CACHE
  • C: \ Users \\.NPMRC
  • C: \ Users \\ Appdata \ Local \ TEMP \ NPM-
  • We return to the command line and perform NVM Uninstall to each version obtained using NVM List:

Additionally, check that the versions are deleted:

How to install node.JS on Windows 10

Using NVM-Windows

Node Version Manager or abbreviated NVM. this is the dispatcher of Node versions.JS. Perhaps during work you will have to use various versions of Node and switch between them. Versions often change, so when working, it is recommended to use the version dispatcher.

NVM is the most common version dispatcher, but, unfortunately, it is not available in Windows, and an adapted version of NVM-Windows is used instead of it.

  • Go to the NVM-Windows repository on Github.
  • Download the NVM-Setup installer.Exe latest version of the dispatcher.
  • After loading, install the installation.
  • At the end of the installer, open PowerShell on behalf of the administrator and check the operability of NVM:

Now you need to choose the version of Node.js that you will install on your computer. The NVM List Available team will show a partial list of versions available for downloading:

If a certain version is not required for your project, it is recommended to choose the latest LTS release. The risk of problems when working with this version is minimal. If you want to test innovations and improved opportunities, then you can download the latest version. At the same time, do not forget that the risk of problems with the latest version is higher.

Install the latter LTS. Take the version number from the result of the NVM List Available and install it using NVM Install:

Installation completed. In some cases, when installing NVM-Windows, a problem may arise: NVM will not upload NPM packages manager. In this case, we recommend using the following installation method.

How to install node.JS using an official installer

  • Go to the official Nodejs website.Org in the “Download” section.
  • Select and download the desired version.
  • Upon completion of the load, open the file, after which the installation will begin.
  • Follow the instructions of the installer.

NODE installation.JS in WSL2

If you want to use node.JS Together with Docker, plan to work with the Bash command line or just like Linux, it makes sense to think about installing the execution environment in WSL2.

WSL (Windows Subsystem for Linux) is a software layer for launching applications created under the Linux systems on Windows OS. Perhaps you have already had to work in WSL with applications that do not have Windows versions. Previously, we have already considered the installation of node.JS on Ubuntu 20.04. Therefore, this section will post instructions for the installation of WSL 2. on the installation of node.js on Ubuntu read in the article “How to install node.JS in Ubuntu 20.04 “.

install, node, windows, quick

WSL2 installation algorithm in Windows 10 depends on the version of the operating system. To recognize it, press Winr and enter Winver. After that, such a window will open:

Algorithm for versions older than 2004

In PowerShell, on behalf of the administrator, we perform the following commands:

To check the result, we will use the WSL command.EXE.L.V:

The algorithm for versions is younger than 2004 (at least it will require OS version 1903)

In PowerShell (on behalf of the administrator) we activate the Windows subsystem for Linux.

Then we activate the function of the virtual machine:

After performing these actions, you need to reboot the computer.

When the computer starts, download and install the Linux kernel updates package. You can download it by here.

In PowerShell we choose 2 version of WSL as the main:

Now download some kind of operating system on Linux. You can do this directly to the Microsoft Store application store:

At the end of the installation, you can go to the console of the installed system through the search menu: