Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nvm uninstall doesn't actually uninstall the node version

Tags:

node.js

nvm

So I'm trying to clear out older versions of node.js.

I start with:

$ nvm ls       v0.10.30       v4.2.3 ->    v6.6.0       system 

I don't want the older versions, so I then do:

$ nvm uninstall 4.2.3 Uninstalled node v4.2.3 

I then verify that it's done what I wanted, but it gives the same list of installed versions as before:

$ nvm ls       v0.10.30       v4.2.3 ->    v6.6.0       system 

Specifically, v4.2.3 is still there.

Any ideas what I might be doing wrong? Any other way to force the uninstall? I'm using the Cloud 9 IDE.

like image 516
drmrbrewer Avatar asked Sep 22 '16 09:09

drmrbrewer


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 delete a specific version of Nodejs?

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.


2 Answers

removing manually:

cd ~/.nvm/versions/node sudo rm -rf v4.2.3/ 
like image 178
sudo Avatar answered Sep 20 '22 05:09

sudo


Remove by command

nvm uninstall <version>  nvm uninstall v16.7.0 

remove manually

cd ~/.nvm/versions/node sudo rm -rf v16.7.0/ 
like image 38
MADHUR GUPTA Avatar answered Sep 20 '22 05:09

MADHUR GUPTA