![]() Additionally, some npm modules may not be supported in the version of node you’re using, so be aware of your environment as you work. Please note that any global npm modules you may have installed are not shared between the various versions of node.js you have installed. Its written so well in the documentation so I will simply quote it here: ![]() To switch version run nvm use followed by the version number nvm use 12.21.0Īnd thats it! You can now switch between different versions. In the above picture you can see that I have installed seven different versions of node, and I’m currently using 10.23.2. To see what versions you have already installed simply run nvm list So if you want to install node version 10.23.2, you would run the following command nvm install 10.23.2 You do this by running nvm install and the version number you would like to install. Now you can start installing different node versions. If nvm installed correctly you can now run nvm version and get the version number in return. The Setup-NVM-for-Windows installation wizard will walk you through the setup steps, including choosing the directory where both nvm-windows and Node.js will be installed. Once downloaded, open the zip file, then open the nvm-setup.exe file. I use windows terminal, but regular command prompt (or any other) will do to. Download the nvm-setup.zip file for the most recent release. When its finished open your CLI (command line interface). Run the installation wizard, click next a bunch of times, and then wait while it installes on your computer. ![]() Go to nvm-windows github repo and download the zip-file containing the installation wizard. With nvm you can have multiple versions of node installed at the same time, and easily switch between them! In this blogpost I will show you how to install and use nvm. And what if you are working on multiple projects that all uses different node versions? This is where NVM comes in handy. Previously I used to uninstall/install the correct version manually. Have you ever experienced difficulties with a project because you are on the wrong node version? I have! A lot of projects break, or won’t build, if you don’t have the required version. If you are on mac/linux follow this link to find the correct version. Installing Node.js requires local administrator rights if you are not a local administrator, you will be prompted for an administrator password on install. Disclaimer: This is about nvm for windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |