![]() To uninstall any version, we can use nvm uninstall 12.6.0 To change the default node version, nvm alias default 10.16.0 This results in Now using node v10.16.0 (npm v6.9.0) We can change the current active version by typing in nvm use 10.16.0 ![]() The one with the arrow mark, signifies the default node version. ![]() To see the all the node versions installed/available, type To install any particular versions, type npm install 4.9.1 To install the long term release (lts) version (which you should be using for production level applications), type nvm install -lts 3. To verify if node actually got installed, you can type node -versionįor me it resulted in v12.6.0 2. The version installed by the above command will be the default node version. ![]() Installing the latest version of node nvm install node The next few commands can be run independently, so make sure that you run the one as per your requirement. Then we can start with the installation of node. This will return the currently installed version. Restart the terminal and type in nvm -version The terminal will ask to restart to be able to load the new command. This will download the nvm package to our local, install it and set the path of nvm in bash. If there are already any nodejs or npm version installed on your system and you want to remove it, you can do so by (not mandatory) sudo apt remove nodejsįirst let’s get started with installing Node Version Manager (nvm) curl -o- | bashĪll the details of nvm can be found on it’s github page. ![]() While direct installation can be done, it might be better to do it by using nvm to install nodejs. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |