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

Simple command to switch back to the system installation of Node #486

Closed
00dani opened this issue Jan 30, 2018 · 6 comments
Closed

Simple command to switch back to the system installation of Node #486

00dani opened this issue Jan 30, 2018 · 6 comments

Comments

@00dani
Copy link

00dani commented Jan 30, 2018

Currently once you use n, you're stuck with n-installed versions of Node unless you go through and remove its binaries from your PATH manually. However, you'll almost invariably have a version of Node installed systemwide, using your distribution's package manager, since you need Node running to start using n.

There should be a command - say, n system - to have n clear its Node binary out of your PATH so that the systemwide Node becomes active once more.

@shadowspawn
Copy link
Collaborator

For interest, is this effectively to do an uninstall of n and the binaries it installed, or to allow switching back and forth between system and n managed versions?

@00dani
Copy link
Author

00dani commented Feb 18, 2018

Both, really? I think the latter should be supported without effectively uninstalling n itself in the process, to ensure it's easy to restore an n-managed version later on, but n should also be easy to uninstall if that becomes necessary.

@davej
Copy link

davej commented Apr 19, 2018

See #173.

@shadowspawn
Copy link
Collaborator

Similar suggestion to #477

@shadowspawn
Copy link
Collaborator

There isn't always a system installed node, and the notion of "switching" to the system installed node is not a good match for effectively deleting the non-system installed version. However, there is a suggestion to add an uninstall option in #540 which readers could subscribe to for updates and/or give a 👍 if it is of interest.

This issue has not had any activity in over six months. It isn't likely to get acted on due to this report.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

Thank you for your contributions.

@shadowspawn
Copy link
Collaborator

n uninstall has been added in v4.1.0. It deletes node and npm from the install destination (N_PREFIX or /usr/local). It does not affect the cached downloaded versions.

This issue was closed.
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

3 participants