Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nvm: Cannot uninstall currently-active node version

I am doing this on OSX. I need to delete node. but after I type cmd: nvm uninstall v4.4.7 it prompts me that nvm: Cannot uninstall currently-active node version v4.4.7 How can I uninstall node completely?

like image 956
Henry Avatar asked Aug 04 '16 18:08

Henry


People also ask

How do I uninstall a specific version of node using NVM?

NVM allows you to uninstall Node versions that are no longer required. Run the command nvm uninstall with the version of Node you'd like to remove. You cannot remove a version you are currently using, so you must switch to a different version first. NVM confirms the Node version has been removed.

How do I uninstall a specific version of node?

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.

How do I change node versions in 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.


1 Answers

just type following cmd:

$ nvm deactivate 

then type the uninstall cmd.

like image 169
Henry Avatar answered Oct 11 '22 12:10

Henry