How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
2013-09-21 01:28
507 查看
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
相关文章推荐
- Completely Uninstall Node.js from Mac OS X
- How to uninstall CUDA driver and toolkit in Mac OS X?
- How to collect stats of apps from CloudFoundry and do analysis?
- How to Install Apache Tomcat 8 (on Windows, Mac OS X, Ubuntu) and Get Started with Java Servlet Prog
- Build nodejs express framework in MACOS
- How to uninstall (remove) JAVA from OS X Lion
- How to Install apk to Android Devices from Mac OS X
- How to install Node.js, npm and modules
- How to Transfer Audio Output from Mac OS X to Ubuntu via a Network?
- How to disable 'withcredentials' in HTTP header with node.js and Request package?
- Mac OS X 下Node.js开发环境的搭建
- How do I get started with Node.js
- How do I write to files using cheerio and request in node?
- How to Transfer Audio Output from Mac OS X to Ubuntu via a Network?
- How to add global alias and global variable on Mac OS X?
- How to Install and Run a node.js App on Centos 6.4 64bit
- How do I do a bulk insert in MySQL using Node.js
- RemoteBox : Screenshots Screenshots Various screenshots of RemoteBox under different operating systems including Linux, MacOS X, Solaris, NetBSD, FreeBSD and OpenBSD. Do you have a screenshot of RemoteBox running on a distro or operating system
- How to switch a photo from jpg to png, and how to resize the photo for mac?
- 如何阻止文件被iTunes和iCloud同步 How do I prevent files from being backed up to iCloud and iTunes?