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

[Issue]: Unable to upgrade, "The selected directory is not empty" #1211

Open
Svish opened this issue Jan 2, 2025 · 1 comment
Open

[Issue]: Unable to upgrade, "The selected directory is not empty" #1211

Svish opened this issue Jan 2, 2025 · 1 comment
Labels

Comments

@Svish
Copy link

Svish commented Jan 2, 2025

What happened?

I tried to follow the upgrade instructions from the README by running the new installer and selecting my current installation and symlink folder, but when selecting my current symlink folder I'm getting the following error:

The selected directory is not empty. Please choose a different path.

I'm currently on version 1.1.12, and tried to upgrade to the (currently) latest 1.2.2 using nvm-setup.exe

What did you expect to happen?

Expected the installation to work without hickups.

Version

1.1.12

Which version of Windows?

Windows 10

Which locale?

Western European

Which shell are you running NVM4W in?

Command Prompt

User Permissions?

I don't know (Default)

Is Developer Mode enabled?

Yes

Relevant log/console output

No response

Debug Output

<username> is not using admin or elevated rights.

Command Prompt - nvm  debug
Windows Version: 10.0 (Build 22631)

Windows Developer Mode: UNKNOWN (user cannot read registry)

NVM4W Version:      1.1.12
NVM4W Path:         C:\dev\tools\nvm\nvm.exe
NVM4W Settings:     C:\dev\tools\nvm\settings.txt
NVM_HOME:           C:\dev\tools\nvm
NVM_SYMLINK:        C:\dev\tools\nvm\nodejs
Node Installations: C:\dev\tools\nvm

Total Node.js Versions: 3
Active Node.js Version: v20.18.0

IPv6 is enabled. This can slow downloads significantly.

No problems detected.

Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues

Anything else?

No response

@coreybutler coreybutler added the bug label Jan 2, 2025
@coreybutler
Copy link
Owner

The installer is not detecting existing installs properly. I can fix this, but it might take a bit of work/time. In the meantime, you can delete the nodejs symlink at C:\dev\tools\nvm\nodejs, which should allow you to proceed with the installation.

That said, you may want to wait a few hours if you can. I'm going to release v1.2.3 with additional fixes for issues that surfaced in 1.2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants