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

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

    Expanding on Dominic Tancredi's awesome answer, I've rolled this into a bash package and stand-alone script. If you are already using the "Back Package Manager" called bpkg you can install the script by running:

    bpkg install -g brock/node-reinstall
    

    Or you can have a look at the script on Github at brock/node-reinstall. The script allows you to re-install node using nvm or nave, and to specify a node version as your default.

提交回复
热议问题