Created
November 11, 2014 12:17
-
-
Save zevnull/013ff8135df3f9ced6e5 to your computer and use it in GitHub Desktop.
[Mac OS] completely uninstall node + npm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
execute: rm -rf /Users/[homedir]/.npm | |
Then download nvm and follow the instructions to install node. The latest versions of node come with npm, I believe, but you can also reinstall that as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment