-
-
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
Can't uninstall version if lib/node_modules contain a symlink #1270
Comments
Thanks for the report! I've recently run into the same issue, and I'm working on a fix locally as we speak. (Manually running |
@ljharb Is there a risk that it's trying to delete the data inside my code folder by following the symlink? E.g. do you know if it might have deleted some data in there before getting the error mentioned above? |
No, the point of that error is that nothing is deleted until it passes. In addition, it wouldn't have removed the symlink contents, just the link itself, so your data is safe. |
@chowdhurian either way you should update to v0.33.11 - specifically tho, the fix is in v0.33.9, as you can see from the commit |
Still can occur in nvm 0.39.5, when you try to uninstall node 18.15.0. The problem file in my case was |
@IoriBranford i think 1eaaada (currently unreleased) may fix that. |
Environment:
When doing local module development, you'd sometimes run the
npm link
command with is kind of like installing the module you're working on globally. But instead of actually copying the bin files it just creates a symlink to your code.If I then try to run
nvm uninstall <x>
the uninstaller will fail with the following message:The issue is not resolved by running the two commands and a peak inside
$NVM_DIR/versions/node/v4.4.5/lib/node_modules
shows you:If I instead manually remove the symlink:
Then the uninstall is able to complete
The text was updated successfully, but these errors were encountered: