How to update node.js on Windows

Tashreef Shareef
by Tashreef Shareef
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

  • Follow the steps described in this guide to successfully update node.js on Windows.
  • To start the process you can try updating node.js with the installation file.
  • If you want to explore more information on this topic, check out our Developer Tools Hub.
  • To find out more useful information on the topic of this article, don't hesitate to look at our Node.js webpage.
Update Nojs npm

If you are using Node.js for development work, it is important that you are running the latest version of the runtime environment to create better products.

Irrespective of the work case, make sure you update Node.js regularly for stable performance. If you are new to Node.js, here is how you can update Node.js on Window with a step by step guide.

Ad

How do I update Node.js on Windows computers?

1. Update Node.js with the installer

update Node.js on Windows

  1. Open the js download section.
  2. Here you need to download the latest stable release for the popular runtime environment.
  3. Select Windows Installer to download the 64-bit installer.
  4. You can manually download the 32-bit installer as well.
  5. Once the download is complete, double-click to run the installer.
  6. On the Node.js setup wizard, click Next.
    update Node.js on Windows
  7. Accept the license agreement by checking the box and click Next.
  8. Choose the destination folder to install Node.js.
  9. You can customize the feature installation process on the Custom Setup window.
  10. Click Install to complete the installation.
  11. Click Finish.

You can check the Node.js version with the command node -v in command prompt.

Updating Node.js by downloading the installer from the official page is easy. While this is a straight forward process, at times the system may fail to overwrite the older Node.js release resulting in two instances of Node.js. If that problem occurs, follow the second method to install Node.js on Windows with NPM.


5 best cross-platform code editors for programmers


2. Update Node.js with NPM

update Node.js on Windows

  1. Enter the following command to check the version you are currently using:
    Node -v
  1. Enter the following command to clear npm cache:
    npm cache clean -f
  2. Install the dependencies in global mode with the following command:
    npm install -g n
  3. Once n is installed, use the module to install the latest version of Node.js
  4. Enter the following command and hit enter:
    sudo n stable
  5. If you want to install Node.js with the latest feature, use this command instead:
    Sudo n latest
  1. If you prefer to install the specific version of Node.js, use the following command:
    n [version.number]

Once installed, check the currently installed version with Node -v command.


Node.js is an open-source, cross-platform, JavaScript runtime environment that allows you to run JavaScript code outside of a web browser. Being a popular JavaScript runtime environment, Node.js gets new updates every few weeks.

While installing these updates may not be critical soon after the release, at times some feature can only be used after updating to newer releases.

By following the steps in the article, you can update Node.js on Windows with ease. Do let us know if you prefer to update via the installer or to use the command prompt in the comments.


FAQs: Learn more about updating Node.js on Windows

  • How can I update node on Windows?

You can update node.js on Windows by downloading the latest stable release from the Node.js website. If not, use the sudo n stable command to install from the command prompt.

Ad
  • How do I update Nodejs version?

To install a specific of version Node.js, open the terminal and enter the following command n [version.number]. Make sure you have installed the dependencies with the npm install -g n command.

  • How do I update node and npm?

On Windows, the easiest way to update node and npm is to download and install the latest stable release from the official Node.js website. Run the installer and follow on-screen instructions to update node and npm.

Ad