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

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

    In my case none of the other answers worked because I previously downgraded to node8. So instead of doing above, following worked for me:

    which node
    

    which returned /usr/local/bin/node@8 instead of /usr/local/bin/node

    so i executed this command:

    brew uninstall node@8
    

    which worked and then downloaded latest pkg from official site and installed. After that I had to close my terminal and start again to access new version

提交回复
热议问题