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

前端 未结 28 2266
难免孤独
难免孤独 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:18

    I have summarized the existing answers and made sure Node.js is COMPLETELY ERASED along with NPM.

    Lines to copy to terminal:

    brew uninstall node;
    which node;
    sudo rm -rf /usr/local/bin/node;
    sudo rm -rf /usr/local/lib/node_modules/npm/;
    brew doctor;
    brew cleanup --prune-prefix;
    

提交回复
热议问题