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

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

    downgrade node to 0.10.36

      sudo npm cache clean -f
      sudo npm install -g n
      sudo n 0.10.36
    

    upgrade node to stable v

      sudo npm cache clean -f
      sudo npm install -g n
      sudo n stable
    

提交回复
热议问题