Uninstalling the currently active version of node.js with nvm

前端 未结 3 1286
一生所求
一生所求 2021-02-04 04:39

On Ubuntu 16.04, I mistakenly used root to install nvm, and then to install node.js 8.8.1 via nvm. I also used nvm alias default 8.8.1, thinking it would correct my

相关标签:
3条回答
  • 2021-02-04 05:28

    You can uninstall the nodejs by using the following command.

    yum remove nodejs

    However, this will not remove the nvm from your linux box. To remove that try the below command.

    nvm unload

    0 讨论(0)
  • 2021-02-04 05:30
    rm -Rf ~/.nvm
    

    This is the nuclear option in my case. just -R would ask me if I really wanted to delete every file in the nvm folder.

    0 讨论(0)
  • 2021-02-04 05:31

    First type

    $ nvm deactivate
    

    Then type

    $ nvm uninstall 8.8.1
    
    0 讨论(0)
提交回复
热议问题