Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstalling the currently active version of node.js with nvm

People also ask

How do I uninstall a specific version of NodeJS?

To completely uninstall node + npm is to do the following: go to /usr/local/lib and delete any node and node_modules. go to /usr/local/include and delete any node and node_modules directory. if you installed with brew install node, then run brew uninstall node in your terminal.

Do I need to uninstall node before installing NVM?

You can use it to install multiple versions of node, and then you can easily switch the currently used node version with one line of command. In other words, you don't need to uninstall and install anymore, just use nvm to install which version you want to use, and just switch with one instruction after installation!

How do I change node version using NVM?

Switching among Node. 7; we can simply run either nvm use 12.22. 7 or nvm use 16.13. 0 to easily switch into either version we need. Note that since we only have one version that begins with 12, 14, or 16, we can switch versions with a simple nvm use 16 , nvm use 14 , or nvm use 12 command.


First type

$ nvm deactivate

Then type

$ nvm uninstall 8.8.1

You can uninstall the nodejs by using the following command.

yum remove nodejs

However, this will not remove the nvm from your linux box. To remove that try the below command.

nvm unload


rm -Rf ~/.nvm

This is the nuclear option in my case. just -R would ask me if I really wanted to delete every file in the nvm folder.