Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstalling n on OSX #441

Closed
mdanetzky opened this issue Jun 8, 2017 · 3 comments
Closed

Uninstalling n on OSX #441

mdanetzky opened this issue Jun 8, 2017 · 3 comments

Comments

@mdanetzky
Copy link

I'm using MacOS Sierra and n 2.1.4 installed using homebrew. To have a clean uninstall I need to remove all installed versions of node. I can't do that, because n rm tells me that

Error: cannot remove currently active version

It would be great do have an option to deactivate n (just like in nvm).

@troy0820
Copy link
Collaborator

troy0820 commented Jun 8, 2017

Could you use the template so I can understand where everything is? I honestly wouldn't use brew to install n, as it's not in the documentation. Brew installs in /usr/local/Cellar and symlinks it.

@mdanetzky
Copy link
Author

I used:

brew install n

Unfortunately every npm execution needs elevated privileges - which is the reason why I want to remove it. Nonetheless I can imagine, that a functionality to deactivate n might be useful in other scenarios too. For example while switching between various installations.

PS. I just used sudo rm to remove everything that resembled node, npm or node_modules from my system.

@troy0820
Copy link
Collaborator

troy0820 commented Jun 9, 2017

Uninstall with brew and try to install n with the preferred method in the readme. If you don't own the directory where n installs, you will either have to chown them or run sudo everytime you run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants