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

Apparently, there was a "/Users/myusername/local" folder that contained a "include" with "node" and "lib" with "node" and "node_modules". How and why this was created instead of in my "/usr/local" folder, I do not know.

Deleting these local references fixed the phantom v0.6.1-pre. If anyone has an explanation, I'll choose that as the correct answer.

EDIT:

To recap, the best way (I've found) to completely uninstall node + npm is to do the following:

  1. go to /usr/local/lib and delete any node and node_modules
  2. go to /usr/local/include and delete any node and node_modules directory
  3. if you installed with brew install node, then run brew uninstall node in your terminal
  4. check your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there
  5. go to /usr/local/bin and delete any node executable

You may need to do the additional instructions as well:

  1. remove: /usr/local/bin/npm
  2. remove: /usr/local/share/man/man1/node.1
  3. remove: /usr/local/lib/dtrace/node.d

Then download nvm and follow the instructions to install node. The latest versions of node come withnpm, I believe, but you can also reinstall that as well.


转帖:http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值