-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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]: Cannot switch nodejs #1147
Comments
Not enough info. Please run |
(base) PS D:\HBuilderProjects\PicSelect> nvm debug C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe Windows Developer Mode: UNKNOWN (user cannot read registry) NVM4W Version: 1.1.12 Total Node.js Versions: 2 IPv6 is enabled. This can slow downloads significantly. No problems detected. Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues |
I'm not sure how it got into this state, but run The primary issue appears to be a user account lacking permission to use mklink (the underlying windows utility used to generate symlinks). See permission issues. |
C:\Users\alexa>nvm debug 管理员: 命令提示符 - nvm debug NVM4W Version: 1.1.12 Total Node.js Versions: 2 IPv6 is enabled. This can slow downloads significantly. PROBLEMS DETECTED"管理员: 命令提示符 - nvm debug" is not an officially supported shell. Some features may not work as expected. Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues C:\Users\alexa>nvm ls
C:\Users\alexa>nvm use 20 C:\Users\alexa>nvm use 20.14.0 C:\Users\alexa>nvm debug 管理员: 命令提示符 - nvm debug NVM4W Version: 1.1.12 Total Node.js Versions: 2 IPv6 is enabled. This can slow downloads significantly. PROBLEMS DETECTED"管理员: 命令提示符 - nvm debug" is not an officially supported shell. Some features may not work as expected. Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues C:\Users\alexa>nvm ls
C:\Users\alexa>nvm use 20 C:\Users\alexa>nvm use 20.14.0 C:\Users\alexa>nvm use 20.14.0 32-bit
|
(base) PS D:\HBuilderProjects\PicSelect> nvm install 20 Installation complete. If you want to use this version, type nvm use 20.14.0
You see, I deleted the folder of nodejs v20 from the original arm64, and then NVM installed 20. It can switch normally.. |
OK, so if the executable is actually 64 bit, then it is actually 64-bit. Detecting architecture of an executable is a bit of a hack and won't always work. Since there isn't direct arm support yet (there is a PR I plan to merge to support this), I suspect the architecture detection simply isn't accounting for arm. There's not a lot I ca do about this immediately, but once arm support is added, I believe this issue will be resolved. I'll leave this open until the PR is merged and will readdress this after that is complete. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I have node installed through VS 2022 and nvm can't ever use any other version. I can't uninstall it as it's required. Do I have to have all versions installed through nvm-windows or something cus it won't work. |
@Kamek437 run |
I had the same problem today. The nodejs folder remained in the following location without being deleted, so the symbolic link that NVM for Windows was supposed to create was not created and the switch could not be made. |
@coreybutler Right you are my friend, thank you. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
What happened?
C:\Users\alexa>nvm ls
C:\Users\alexa>nvm use 20
node v20.11.0 (64-bit) is not installed.
C:\Users\alexa>nvm use 20.11.0
node v20.11.0 (64-bit) is not installed.
why?????????????????????????????????????????????????????
What did you expect to happen?
fix
Version
1.1.11 or newer (Default)
Which version of Windows?
Windows 11+
Which locale?
None
Which shell are you running NVM4W in?
No response
User Permissions?
Administrative Privileges, Elevated
Is Developer Mode enabled?
None
Relevant log/console output
No response
Debug Output
.
Anything else?
No response
The text was updated successfully, but these errors were encountered: