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

[BUG] nvmd use {version} --project fails with nvm-desktop: The system cannot find the file specified. (os error 2) #130

Closed
iki opened this issue Oct 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@iki
Copy link

iki commented Oct 16, 2024

Describe the bug

Running nvmd use {version} --project in a project directory fails with nvm-desktop: The system cannot find the file specified. (os error 2)

Running global nvmd use {version} and node/npm/npx/corepack shims works OK

To Reproduce

Steps to reproduce the behavior:

  1. Install NVM.Desktop_4.0.1_x64-setup.exe on Windows 11 x64
  2. Install Node v22.9.0 via NVM Desktop
  3. [OK] Optionally check %UserProfile%\.nvmd\bin is in PATH
  4. [OK] Optionally check Node v22.9.0 is installed in %UserProfile%\.nvmd\versions\22.9.0
  5. Set default Node version (see [BUG] nvm-desktop: command not found: "node" after installing first Node version from GUI without running nvmd use {version} #128)
$ nvmd use v22.9.0
Now using node v22.9.0
  1. [OK] Try running node/npm/npx/corepack via nvmd shim. Here I use explicit path to be sure:
$ "%UserProfile%\.nvmd\bin\node.exe" --version
  1. [BUG] Try setting Node version on a project
$ cd "{project directory with package.json}"
$ nvmd use v22.9.0 --project
nvm-desktop: The system cannot find the file specified. (os error 2)

Expected behavior

  • Setting Node version on a project should work OK
  • Error message should include path of the file that cannot be found

Desktop (please complete the following information):

  • OS: Windows 11 23H2 Home 10.0.22635.4367
  • Arch: x64
  • NVM Desktop Version: 4.0.1
@iki iki added the bug Something isn't working label Oct 16, 2024
1111mp added a commit to 1111mp/nvmd-command that referenced this issue Oct 16, 2024
…cts.json` does not exist (1111mp/nvm-desktop#130)

Signed-off-by: The1111mp <The1111mp@outlook.com>
@1111mp
Copy link
Owner

1111mp commented Oct 18, 2024

This issue has been fixed in Release v4.0.2. You can upgrade to this version to verify it. Thanks. 🌹

@1111mp 1111mp closed this as completed Oct 18, 2024
@iki
Copy link
Author

iki commented Oct 20, 2024

Works perfectly! Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants