-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
How to uninstall nvm? #298
Comments
Essentially you'd need to reverse the steps in However, simply removing the nvm commands from your |
just remove directoryrm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bower and as ljharb say find and remove line @creationix please close this issue |
@mibamur There is no need for such emphasis in your comments. And it is probably better to use the Oneliner:
|
@koenpunt yeh, you right |
Thank you! |
To ensure this isn't found by someone unwitting: you do not need to do anything to To uninstall npm with the smallest possible impact, only remove the source lines from your profile. You may also |
@ljharb Ah you're right, it's about uninstalling nvm, not node. Although by removing the nvm directory you'll remove node as well. |
@koenpunt not if node is also installed globally. I install node from source globally (which is simply running 4 commands in the repo) but use |
For additional info, nvm may be installed via Homebrew or npm. Check your installed packages for the proper way to remove the binary files. |
@scott-joe |
What's the reasoning for not hosting nvm on npm? This would make nvm easy to uninstall with |
@trusktr it's not "reasoning", it's that it's a different project that's now deprecated. I've been given ownership of it, and at some point in the future (see #304), I'll replace it with something that bootstraps the proper Also, when using |
It might not make sense. It'd just be nice to uninstall it easily. Maybe it can prompt at the command like something like "This will uninstall versions of node installed by nvm too. Continue?". |
Wait, I'm not even sure that's possible. Oh well, I was able to remove it manually any ways, and I can use Arch Linxu's |
it's pretty simple. |
@ljharb it works |
can we get an |
@chovy that would require modifying one or more of your profile files, otherwise it'd just be Disk space is cheap, so the best way to uninstall it is to simply disable it by removing the sourcing lines from your profile files - which has to be done manually. |
I've removed the directory (on Windows 7) and I still can execute nvm from git bash, what going on? |
@jcubic you may need to restart git bash and/or Windows. Sourced shell functions stay in memory even if the files are deleted. |
step1 - check env:
step2 (remove nvm env from envs):
then, remove |
@sconts to uninstall, yes. when installed, however, the nvm paths should be first, or else it won't work properly. (however, |
rm -rf $NVM_DIR ~/.npm ~/.bower && unset NVM_DIR |
@myisjon |
How about adding this in README? |
Please add uninstall instructions to the README. One preference for using package managers to install node or anything else is ease of removal. Should be explicitly defined somewhere the best practice in completely removing it... |
@xahon it would be very dangerous to mess with your profile files. The most an |
@ljharb fzf has an utility to remove itself in a safe manner. Also user can override NVM_DIR by some reason and it is not safe to do |
It’s quite safe; and any user who overrides NVM_DIR would cause nvm to delete the overridden dir anyways, since that’s the only way nvm knows where it lives. i can’t speak for fzf or any other tool; the current requirements are one rm command, and optionally deleting 2-3 lines from your profile file. There’s nowhere close to enough incremental value from an uninstall command to risk it. |
work for me in macos |
I too am trying to remove all of nvm, npm, and node. After following advice above, I don't believe I have completely uninstalled everything. For example, I still see: If I want to start afresh with nodejs, what is the advice about removing node_modules and the rest I found? |
@molnarjoe |
then restart your terminal and check🙂 |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
no one of above removed my nvm. No bash script for it? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@Barabba11 removing nvm is a two step process - |
Did't work, pobably because it was not properly configured in PATH, so I removed it under root folder and now I can installa Node Red. Thanks |
Having nvm installed shouldn't interfere with any kind of system node, whether node red or otherwise. |
you could also check to see if you have an .npmrc file in your home or $NVM_DIR. if there is a reference there to a registry, IF you are having issues with package resolution, it could be intercepting the call. |
and how to fine the $NVM_DIR . |
@Feyem9 it’s an env var. By default it’ll be $HOME/.nvm, but you can just check its value. |
|
this removed nvm from comand line but files still on /root/.nvm |
I want to uninstall nvm completely. Is there documentation on how to do this?
The text was updated successfully, but these errors were encountered: