How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

前端 未结 28 2208
难免孤独
难免孤独 2020-11-21 05:28

My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19.

My node version is:



        
28条回答
  •  抹茶落季
    2020-11-21 06:16

    If you have already installed nvm then execute the following commands

    • nvm deactivate - This will remove /.nvm/*/bin from $PATH
    • nvm list - To list out all the versions of node installed in the system
    • nvm uninstall in you can specify all the versions you want to uninstall.

    It is always a good that you install node using nvm and uninstall using nvm rather than brew .

    This solution worked for me.

    Additional Commands

    • which node to know the path of node installed in your system. You can rm this directory to uninstall node manually. Then you may need to adjust the PATH file accordingly.

提交回复
热议问题