nvm uninstall doesn't actually uninstall the node version

我与影子孤独终老i 提交于 2020-01-03 07:31:46

问题


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.


回答1:


removing manually:

cd ~/.nvm/versions/node
sudo rm -rf v4.2.3/



回答2:


cd ~/.nvm/versions/node rm -Rf v4.2.3

// Try clearing cash nvm cache clear




回答3:


It works now, in nvm version 0.35.1. Or at least it worked for me.

If the node version we want to uninstall is the currently used one though, before uninstalling it we need to nvm use another version.



来源:https://stackoverflow.com/questions/39634954/nvm-uninstall-doesnt-actually-uninstall-the-node-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!