Macos – Uninstall Node.js

macosnode.jsuninstall

A little while ago, I installed Node.js version 0.2.1 using these commands on Mac OSX:

./configure
make
sudo make install 

I recently installed Homebrew, so now my preference is to use it to manage my installs. I installed Node.js version 0.4.5 today with the following command:

brew node

But I noticed that I've still got the old version of Node.js lying around in these directories:

/usr/local/include/node/
/usr/local/lib/node/

What is the proper way to uninstall Node.js that was installed using the sudo make technque?

Thanks in advance

Best Answer

There is no "proper" way. The make install just puts the files directly in place and there's no manifest to track what was installed as of that. You just need to find the relevant files and delete them.

One thing you can do is find the files created within a couple of minutes of the binary you know is part of the package, since that will give you a starting point for you to filter down.

Related Question