Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Uninstalling Node.js if installed from http://nodejs.org #4058

Closed
aaronbushnell opened this Issue · 8 comments

5 participants

@aaronbushnell

I installed Node.js + npm using the Mac installer on the website (http://nodejs.org/). What is the best way to completely remove Node.js, npm, and any other dependencies? Want a complete clean uninstall.

@aaronbushnell

Any one have some information on this or a guide I could be pointed to?

@bnoordhuis

@isaacs is most qualified to comment on this - he is the one who builds the .pkg and besides, he runs OS X - but I think it's a matter of simply running rm -fr /usr/local/bin/{node,npm} /usr/local/lib/node_modules/

@aaronbushnell

Thanks for the advice, @bnoordhuis. @isaacs — any advice for a n00b like me on a full Node.js + npm uninstall?

@isaacs
Owner

This should do it:

sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}

If you have the node source code, you can also run sudo make uninstall on the v0.8 branch, and that'll do it.

@isaacs isaacs closed this
@aaronbushnell
@isaacs
Owner

Yep.

@nacho-marin

I would add this to isaacs' command line: sudo rm -Rf /usr/local/lib/dtrace/node.d; sudo rm -Rf /usr/local/include/node

@samuelbjohnson

I also had to change the owner and group for the /usr/local/lib directory (which for me contained only the dtrace directory). Otherwise, when I try to install node again using homebrew, homebrew is unable to create the symlink in the /usr/local/lib/dtrace directory, as the owner is still wheel.

@StampedePress StampedePress referenced this issue in nodeschool/discussions
Closed

learnyounode -RaspberryPi Issues #971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.