Comments (12)
(base) PS D:\HBuilderProjects\PicSelect> nvm install 20
Downloading node.js version 20.14.0 (64-bit)...
Extracting node and npm...
Complete
npm v10.7.0 installed successfully.
Installation complete. If you want to use this version, type
nvm use 20.14.0
(base) PS D:\HBuilderProjects\PicSelect> nvm use 16
Now using node v16.20.2 (64-bit)
(base) PS D:\HBuilderProjects\PicSelect> nvm ls
20.14.0
-
16.20.2 (Currently using 64-bit executable)
(base) PS D:\HBuilderProjects\PicSelect> nvm use 20
Now using node v20.14.0 (64-bit)
(base) PS D:\HBuilderProjects\PicSelect> nvm ls -
20.14.0 (Currently using 64-bit executable)
16.20.2
(base) PS D:\HBuilderProjects\PicSelect>
You see, I deleted the folder of nodejs v20 from the original arm64, and then NVM installed 20. It can switch normally..
from nvm-windows.
Not enough info. Please run nvm debug
and paste the results here.
from nvm-windows.
My computer is a Windows 11 ARM architecture CPU 8cxgen3. I downloaded the Windows ARM version of nodejs from the official website and placed it in D: \ Program Files \ nvm. Although it is arm64 bit, the message returned by nvm is 32bit...
I tried NVM install 20.14.0 and downloaded nodejs 20.14.0 x64 bit. Then, I deleted all the files inside and copied the arm version of nodejs into this folder. Then, I entered NVM ls and it displayed 32 bit. Then, I used NVM 16 to switch to another version. Then NVM uses 20 and displays node v20.14.0 (64 bit) as not installed. I don't know what bug this is, and NVM cannot download arm64 version of nodejs............
Not enough info. Please run
nvm debug
and paste the results here.
from nvm-windows.
(base) PS D:\HBuilderProjects\PicSelect> nvm debug
alexa is not using admin or elevated rights.
C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
Windows Version: 10.0 (Build 22631)
Windows Developer Mode: UNKNOWN (user cannot read registry)
NVM4W Version: 1.1.12
NVM4W Path: D:\Program Files\nvm\nvm.exe
NVM4W Settings: D:\Program Files\nvm\settings.txt
NVM_HOME: D:\Program Files\nvm
NVM_SYMLINK: D:\Program Files\nvm\nodejs
Node Installations: D:\Program Files\nvm
Total Node.js Versions: 2
Active Node.js Version: v16.20.2
IPv6 is enabled. This can slow downloads significantly.
No problems detected.
Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues
from nvm-windows.
I'm not sure how it got into this state, but run nvm install 20 64
to force the 64-bit install.
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.
from nvm-windows.
C:\Users\alexa>nvm debug
Running NVM for Windows with administrator privileges.
管理员: 命令提示符 - nvm debug
Windows Version: 10.0 (Build 22631)
NVM4W Version: 1.1.12
NVM4W Path: D:\Program Files\nvm\nvm.exe
NVM4W Settings: D:\Program Files\nvm\settings.txt
NVM_HOME: D:\Program Files\nvm
NVM_SYMLINK: D:\Program Files\nvm\nodejs
Node Installations: D:\Program Files\nvm
Total Node.js Versions: 2
Active Node.js Version: v16.20.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
20.14.0
- 16.20.2 (Currently using 64-bit executable)
C:\Users\alexa>nvm use 20
node v20.14.0 (64-bit) is not installed.
C:\Users\alexa>nvm use 20.14.0
node v20.14.0 (64-bit) is not installed.
C:\Users\alexa>nvm debug
Running NVM for Windows with administrator privileges.
管理员: 命令提示符 - nvm debug
Windows Version: 10.0 (Build 22631)
NVM4W Version: 1.1.12
NVM4W Path: D:\Program Files\nvm\nvm.exe
NVM4W Settings: D:\Program Files\nvm\settings.txt
NVM_HOME: D:\Program Files\nvm
NVM_SYMLINK: D:\Program Files\nvm\nodejs
Node Installations: D:\Program Files\nvm
Total Node.js Versions: 2
Active Node.js Version: v16.20.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
20.14.0
- 16.20.2 (Currently using 64-bit executable)
C:\Users\alexa>nvm use 20
node v20.14.0 (64-bit) is not installed.
C:\Users\alexa>nvm use 20.14.0
node v20.14.0 (64-bit) is not installed.
C:\Users\alexa>nvm use 20.14.0 32-bit
node v20.14.0 (64-bit) is not installed.
It's not a permission issue. You see, even though I'm currently in the administrator cmd, I still can't solve the problem. NVM has recognized the ARM 64bit version of nodejs as 32-bit.. I think that's the key. NVM does not consider arm64 bit to be 64 bit...
I'm not sure how it got into this state, but run
nvm install 20 64
to force the 64-bit install.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.
from nvm-windows.
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.
from nvm-windows.
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.
from nvm-windows.
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.
from nvm-windows.
@Kamek437 run nvm debug
. I suspect you'll get a problem showing that the version you installed through VS 2022 precedes NVM4W on the PATH. See the common issues if this is the case. If not, open a new issue.
from nvm-windows.
I had the same problem today.
However, in my case, the cause was leftover files from uninstalling the original node.js.
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.
C:\Program Files\notejs
from nvm-windows.
@coreybutler Right you are my friend, thank you.
from nvm-windows.
Related Issues (20)
- [Issue]: Windows Firewall Issue with nvm HOT 3
- [Feature]: add `nvm install` to the command line syntax help HOT 1
- [Feature]: Proper Documentation HOT 1
- [Issue]: unins000.exe not present in installation path (NVM_HOME). HOT 1
- [Issue]: C:\Program Files\nodejs not added to the environment variable path HOT 4
- [Issue]: HOT 2
- nvm HOT 4
- [Issue]: `nvm use` bug HOT 5
- [Issue]: `.nvm` dir on windows in strange place
- [Issue]: The System cannot find the file specified HOT 1
- Make `nvm install` automatically use the installed version HOT 1
- [Feature]: Add an option to manipulate if use admin privilege or non-admin one HOT 2
- [Feature]: Manually specifying a custom location of Node.js installation - Visual Studio 2022 HOT 3
- [Issue]: NPM commands give error: 11: exec: node: not found HOT 1
- i have been seeing the nv issue and it was taking too log to resolve and making the package completey rely on the code/project. HOT 4
- [Issue]: SYMLINK create not working properly when username contains ^
- [Feature]: Support for ARM windows HOT 1
- [Issue]: uninstall issue when cancelled
- [Issue]: Error 404 installing 'latest' node version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvm-windows.