Hello!
I've installed NVM with the script provided:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
If I am understanding everything correctly the only thing this file seems to have done is added 3 lines to the very bottom of my .bashrc and created a folder called .nvm in my ~ folder.
In this same ~ folder I have a handful of my development sites (in a separate folder) do I need to do anything special to completely remove nvm or will removing the ~/.nvm and the bottom 3 lines of .bashrc be enough?
Does the install.sh script make any other modifications to files elsewhere after that specific command (IE do I have to worry about anything being modified in my ~/apps folder where my sites are hosted).
Thanks!
(duplicate of #298)
No, all you need to do is remove $NVM_DIR (~/.nvm is the default), and the relevant 2 lines in your profile file (but you also can leave those behind, since they're guarded by a file existence check).
Great, thanks! - No files outside of the $NVM_DIR are modified at all? Seems I did that right then.
@zackeryfretty one of your profile files will be modified by the install script, but nothing else should be.
your .npmrc file may has a prefix set
If so, nvm will have made you remove it, but nvm won鈥檛 leave one behind. This is good anyways, because the prefix setting is best avoided in general.
Interesting.
I followed the uninstall instructions in the readme here.
Then I tried out n, but recognized that npm globally installed packages still landed in ~/.nvm/*.
So I checked the .npmrc file and there was still that prefix set.
I don't know why it was still there.
Presumably you put it there in the first place :-) nvm certainly didn鈥檛.
Yeah, very likely, I use npm since years, who knows which workaround ended up there^^
Anyway, nvm is a really great tool!
Most helpful comment
(duplicate of #298)
No, all you need to do is remove
$NVM_DIR(~/.nvmis the default), and the relevant 2 lines in your profile file (but you also can leave those behind, since they're guarded by a file existence check).