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.
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.
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.
removing manually:
cd ~/.nvm/versions/node sudo rm -rf v4.2.3/
Remove by command
nvm uninstall <version> nvm uninstall v16.7.0
remove manually
cd ~/.nvm/versions/node sudo rm -rf v16.7.0/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With