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 · 5 comments
Open

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

Svish opened this issue Jan 2, 2025 · 5 comments
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.

@xSkeletor
Copy link

Hi @coreybutler! Any word on a patch being dropped for this issue along with other ones?

@coreybutler
Copy link
Owner

Hopefully over the weekend.

@coreybutler
Copy link
Owner

It might be another week still. Unfortunately, a major home repair has been taking longer than expected.

@jtabox
Copy link

jtabox commented Feb 3, 2025

I stumbled upon the same issue while trying to use the installer to upgrade nvm, so instead I just downloaded the zip file that doesn't require installation and dropped its files in the directory I have nvm installed.

I assume if you have existing node installs that you wanna keep then you already have a previous version of nvm installed? It'll ask to overwrite most of the existing files, most importantly the scripts and executables, let it. And it'll also add some icons if you didn't already have them, but it won't touch the existing nodejs folders.

And since you have a previous version installed you don't need to set the environment variables, they're already set.

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

4 participants