How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
来源:互联网 发布:游戏风云网络直播 编辑:程序博客网 时间:2024/06/06 21:38
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:
- go to /usr/local/lib and delete any node and node_modules
- go to /usr/local/include and delete any node and node_modules directory
- if you installed with brew install node, then run brew uninstall node in your terminal
- check your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there
- go to /usr/local/bin and delete any node executable
You may need to do the additional instructions as well:
- remove: /usr/local/bin/npm
- remove: /usr/local/share/man/man1/node.1
- 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
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- How to uninstall CUDA driver and toolkit in Mac OS X?
- How to Do Everything with Mac OS X Panther
- Uninstall PhotoJoy Toolbar - How you can Uninstall and take away PhotoJoy Toolbar Completely with Ph
- Oracle client uninstall and reinstall
- Uninstall MySQL on Mac OS X
- How to completely uninstall mysql on Ubuntu
- How to completely uninstall mysql on Ubuntu
- How to completely uninstall mysql in ubuntu
- How do I uninstall Google Chrome in Fedora?
- Mac OS X 下Node.js开发环境的搭建
- How do I start Notepad++ from cmd?
- How do I write to files using cheerio and request in node?
- How do I... Identify and delete duplicates from SQL Server tables?
- mac os install node.js
- Mac Os 安装 node.js
- mac os install node.js
- How to Transfer Audio Output from Mac OS X to Ubuntu via a Network?
- java 寻找连续出现的数字
- CBD@CG All Start
- 关于项目中NServiceBus和MEF注入(WCF服务代理失效)的两个问题
- 用于Windows Embedded Compact 的几个小工具
- JQuery小结
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- 框架牛人
- 外国优秀网站资源
- hdu 2707 Steganography 模拟题
- C++指针与地址详解
- 用队列对扑克牌排序 -优先队列法
- Java面试题之十
- apache 开启gzip
- ubuntu安装打开chm格式的文件