Using multiple Node version

Installing NVM on Windows

If you’re using Windows, you’ll need to use “nvm-windows,” a version of NVM specifically for Windows.

  1. Download nvm-windows:
  2. Install nvm-windows:
    • Extract the nvm-setup.zip file and run the nvm-setup.exe file.
    • Follow the installation instructions. It will prompt you for the directory to install NVM and the directory for Node.js versions. The defaults are usually fine.
  3. Verify Installation:
    • Once installed, open a new command prompt or PowerShell window.
    • Type nvm to check if it is installed. If it is correctly installed, you will see a list of available commands.

Installing Node.js Version 18

After installing NVM, you can install Node.js version 18:

nvm install 18
nvm use 18

for Installing nvm in ubnutu or linux use below command

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.39.7/install.sh | bash

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *