node.js - How to delete node installed by brew completely? -


i have problem uninstalling 'node' brew. when used

brew uninstall node 

, showed:

uninstalling /usr/local/cellar/node/7.8.0... (3,076 files, 39.9mb) 

; when commanded:

node -v 

, there still

v6.9.4  

when tried use brew uninstall node again, showed:

error: no such keg: /usr/local/cellar/node 

i think installed node package before, , today used wrong command:

brew install nodejs 

while wanted install node. , found wrong, uninstalled nodejs in same way. node package lower version still there. knows why , can me delete , reinstall?

sounds may have installed node via method in past.

if

$ ls -la $(which node) 

it should tell it's installed (and if that's symlinked location or not).

removing binary part of thing, other thing you'll want remove root npm , node_modules folder.

find npm same way found node binary, root node_modules folder either under /usr/local/lib might elsewhere; can check npm config ls -l list of settings of npm, tell directories in are.


Comments