nvm uninstall doesn't actually uninstall the node version

前端 未结 3 823
礼貌的吻别
礼貌的吻别 2021-02-18 12:53

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

相关标签:
3条回答
  • 2021-02-18 13:10

    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.

    0 讨论(0)
  • 2021-02-18 13:21

    removing manually:

    cd ~/.nvm/versions/node
    sudo rm -rf v4.2.3/
    
    0 讨论(0)
  • 2021-02-18 13:28

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

    // Try clearing cash nvm cache clear

    0 讨论(0)
提交回复
热议问题