upgrade version of node in windows

  1. Download the latest version of Node.js for Windows from the official Node.js website (https://nodejs.org/).

  2. Run the downloaded installer executable (.msi file).

  3. Follow the installation wizard, accepting the license agreement, choosing the installation location, and selecting the components to install. Click "Next" to proceed.

  4. In the "Tools for Native Modules" window, ensure the checkbox for "Automatically install the necessary tools..." is checked. Click "Next."

  5. In the "Advanced Installation" settings, review and adjust settings if needed. Click "Install" to start the installation.

  6. The installer will progress through the installation process. Once completed, click "Finish" to exit the wizard.

  7. Open a new command prompt or PowerShell window to verify the installation by running the following commands: node -v npm -v

  8. The command prompt should display the installed Node.js version and npm version, confirming the successful upgrade.