nvm-windows: `nvm use` reports that the version was not installed or could not be found
Issue:
How To Reproduce:
nvm install 16
Downloading node.js version 16.13.1 (64-bit)…
Extracting…
Complete
Installation complete. If you want to use this version, type
nvm use 16.13.1
nvm use 16
node vv16.13.1 (64-bit) is not installed or cannot be found.
Please notice the double v in front of the version.
nvm use 16.13.1
Now using node v16.13.1 (64-bit)
Expected Behavior:
nvm use
resolves the version properly
Desktop:
- OS: Windows
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 40
- Comments: 46 (9 by maintainers)
Commits related to this issue
- Allow `nvm use` to be called with the part of the semver For instance, the `nvm use 12` will switch to the latest installed version of 12.*. Similarly, `nvm use 12.22` will switch to the latest insta... — committed to vladonemo/nvm-windows by vladonemo 3 years ago
- chore(ci): use nvs on Windows Switch to installing node on Windows using NVS rather than NVM. NVS is not installed by default, so use Chocolatey to install it. NVM currently has two shortcomings tha... — committed to daxelrod/jowl by daxelrod 2 years ago
- Allow `nvm use` to be called with the part of the semver For instance, the `nvm use 12` will switch to the latest installed version of 12.*. Similarly, `nvm use 12.22` will switch to the latest insta... — committed to vladonemo/nvm-windows by vladonemo 3 years ago
- Allow `nvm use` to be called with the part of the semver For instance, the `nvm use 12` will switch to the latest installed version of 12.*. Similarly, `nvm use 12.22` will switch to the latest insta... — committed to vladonemo/nvm-windows by vladonemo 3 years ago
I have the same issue, I think it does works when you add the letter v before the version works, but you have to be an Administrator (elevated privileges):
nvm version 1.1.9
Now as a user:
@Rusinas the only workaround is to type the full version 😉 so do
nvm list
first and then type the full version, likenvm use 12.22.8
. Or take my branch, build and deploy the exe to your machine 😉Nope, typing the full version doesn’t work either.
I think I’m okay with 16 for now, but any chance your branch will be merged soon?
I had the same issue, I resolve it by
nvm use 16.14.2
instead ofnvm use 16
Note: 16.14.2 is the current version on my pc. to check yours usenvm list
Hope this solves your issue
run as admin on cmd. now i can use it
same issue is happening for me. any idea when it will be fixed?
It looks like your prior installations weren’t unpacked. I’m not sure how that happened because NVM4W unpacks the contents in a temp directory when it writes to the final location. It expects a file structure like this:
I’m not sure why this occurred. If you have a mirror setup, it’s possible the installers are in a different format. There are other users who have experienced similar symptoms, but it’s not common and there is no clear reason why it’s happening to some people and not others.
If anyone else runs into this, please open a new issue.
Hello guys, I build a binary output based on e050a107363af310edace07ba76d0bd863f42b00 , which
nvm use xx
works. The only thing I changed is updated the NvmVersion from1.1.9
to1.1.10 (Unofficial release build by DevDengChao on 050a107)
Try the installer or just replace the
nvm.exe
underC:\Users\${USER}\AppData\Roaming\nvm
🎉 nvm-noinstall.zip nvm-noinstall.zip.checksum.txt nvm-setup.zip nvm-setup.zip.checksum.txt nvm-update.zip nvm-update.zip.checksum.txtThis is addressed in PR #709, which will be merged in an upcoming release.
step 1 - Open Git Bash as an Administrator. step 2 - Type “node --version” enter. step 3 - Type “nvm --help” enter to check whether you have install it correctly or not. step 4 - Type “nvm list available” then hit the enter button. step 5 - Type “nvm use 18.12.1” (use your version accordingly by seeing the list) and enter. step 6 - If it shows “node v18.12.1 (64-bit) is not installed.”. Type “nvm install 18.12.1”(use your version accordingly) step 7 - Now type “nvm use 18.12.1” and hit the enter button. step 8 - Type “nvm current” to recheck whether nvm is using v18.12.1 or not.
This is how I figure it out. Thank You
This is now available in v1.1.10.
Yeah I just try
nvm on
in administrator mode then it works. Amazing.For those reaching this page via Google, upgrade to at least v1.1.11 and run
nvm debug
. It will catch many configuration problems.There is one known issue it will not catch yet (in v1.1.11). If you have an invalid Node installation, such as one that didn’t failed to extract the files or has no
node.exe
, then you’ll need to reinstall that particular version.A proper installation should look similar to this:
C:\Users\corey\AppData\Roaming\nvm\v19.6.0
An example of an invalid installation:
C:\Users\corey\AppData\Roaming\nvm\v19.2.0
A check for this has already been added to the master branch. It will be a part of v1.1.12 when it is released.
@coreybutler It’s been long time we suffer from this, can we just have a
v1.1.9-patch-1
first ?I manually deleted all of the node version folders and I was now able to install and use node 16.20.0. This is very strange but I guess it’s ok now.
I solved this problem by typing the full version. Example: nvm use 14.0.0. It works all fine now.
I had the same problem and resolved it by running Git Bash as admin then using the
nvm use
command with the full version (14.20.0 for me).The issue is closed because the PR was merged. However; merging the PR is not the same as releasing the software. This is scheduled to be a part of v1.1.10 (release TBD, after other PRs have been reviewed/merged).
I’ve tried. I can’t use it