-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
nvm uninstall fails due to permissions/globally installed modules via sudo #453
Comments
if Try installing the latest version (command is in the README) and try again. |
Tried on another machine, worked now, but |
Thanks, I'll consider that a separate issue. |
As erroneously reported under #455, here's what happens on uninstall for me:
|
What are your user permissions inside |
|
I've just retried with the latest
|
I turned off |
Definitely a permissions issue - perhaps we should remove that error silencing, so it's more apparent what's wrong? Or, we could simply print out a custom error message pointing out that some global modules weren't able to be removed. |
I'd go with the |
Would that work when run non-interactively? None of |
No it works if you modify to |
Good to know - but |
The problem is many Node modules advise to install them globally with |
Indeed - however, that's bad advice in any ecosystem :-( I'll think about how |
Any update since 2014? |
No, unfortunately I still don't know how |
In the case where the Maybe the root cause can eventually be addressed by a campaign to educate Node module authors to never recommend using In the meantime, what do you think of the above suggestions? (Also, thanks for the quick response!) |
Definitely do not set an A message would be great - PRs are welcome :-) |
Steps to reproduce:
nvm ls
lists:.nvm
,v0.10.26
,-> v0.10.29
nvm uninstall v0.10.26
What happens:
v0.10.26
is not removed.nvm ls
still lists:.nvm
,v0.10.26
,-> v0.10.29
.What should happen:
v0.10.26
should be removed.Platform:
The text was updated successfully, but these errors were encountered: