![]() nvm use version-number to use any other version you have installed.nvm use lts to use the long-term support version.nvm use latest to use the latest version.Now, to see the list of Node versions you have installed on your Windows machine, run nvm list. If the version of NPM you want to use is not available, run npm install version-number -g to install it. So you don’t need to install NPM separately. N.B.: Once you install a version of Node, the corresponding version of NPM is installed for you. To install that specific version, run nvm install node-version-number. To install a specific version of Node, you need to run nvm list available first so you can see the versions of Node that are available. To install the LTS version of Node, run nvm install lts. It is always better to install the long-term support (LTS) version of Node because it is less buggy. To install the latest version of Node, run nvm install latest. The superpower NVM gives you is the ability to have multiple versions of Node.js installed on your machine. How to Install Different Versions of Node.js and NPM with NVM To open Command Prompt as admin, search for “cmd” and select “Open as Administrator” on the right. ![]() To open PowerShell as admin, right-click on Start and select “PowerShell (Admin)”. To use NVM, you need to open PowerShell or Command Prompt as an admin. If you get the same message I got above, then nvm-windows has been successfully installed. Step 4: Open up PowerShell or Command Prompt and run nvm -v to confirm the installation. Follow the installation wizard to install it. ![]() Step 3: Locate the installer on your computer and open it. Step 2: Click on the latest version to download it. You’ll be taken to a page containing different versions of nvm-windows.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |