To ensure everything works properly, you need to update Node.js regularly for stable performance. Today’s guide will show you how to update Node JS on Windows, so be sure to keep on reading.
Can you update Node from command line?
Yes, it’s possible to update Node on Windows from the command line. However, this method requires that you download and install additional software from GitHub to work. In addition, before using this method, you need to remove all versions of Node and then install them from the command line. This is done in order to avoid any potential issues on your PC.
How do I update Node to the latest version?
1. Update Node.js with the installer
You can check the Node.js version with the command node -v in the command prompt. If you want to update Node version on Windows, this is the most straightforward way to do it. Although simple, sometimes issues with it can emerge. If that problem occurs, follow the second method to update Node on Windows using NVM.
2. Update the Node Version on Windows with NVM
Visit windows-nvm download page and download nvm-setup.exe.
Run the setup file and follow the instructions on the screen to complete the process.
Press the Windows key + X on your keyboard. Select PowerShell (Admin) from the list.
Run the following command nvm install node
Type nvm list available
Type nvm use
After running these steps, you should be able to easily update Node to specific version and switch between versions with ease.
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 features can only be used after updating to newer releases. By following the steps in the article, you can upgrade Node version on Windows with ease. If you’re a fan of node, maybe consider trying Yarn as well. We have a great guide on how to install Yarn, so be sure to check it out. Do let us know what method you use to update Node on your PC in the comments below.
Name *
Email *
Commenting as . Not you?
Save information for future comments
Comment
Δ