nvm
nvm copied to clipboard
Installation fails on WSL2
Operating system and version:
Windows 11 Home 24H2 build.26100.6584 WSL version: 2.5.10.0 Kernel version: 6.6.87.2-1 WSLg version: 1.0.66 MSRDC version: 1.2.6074 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.6584 OS: Debian GNU/Linux 13 (trixie) x86_64 Host: Windows Subsystem for Linux - Debian (2.5.10.0) Kernel: Linux 6.6.87.2-microsoft-standard-WSL2 Shell: bash 5.2.37 WM: WSLg 1.0.66 (Wayland) Terminal: Windows Terminal CPU: AMD Ryzen 7 5700U (16) @ 1.80 GHz GPU: AMD Radeon(TM) Graphics (495.56 MiB) [Integrated] Memory: 527.80 MiB / 7.43 GiB (7%) Swap: 0 B / 2.00 GiB (0%) Disk (/): 2.21 GiB / 1006.85 GiB (0%) - ext4 Disk (/mnt/c): 216.84 GiB / 459.57 GiB (47%) - 9p
nvm debug output:
nvm ls output:
How did you install nvm? curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
What steps did you perform?
Copy pasted curl command
What happened?
Installation failed. Git cloning tried to allocate 20GB via malloc, failed.
=> Downloading nvm from git to '/home/ellis/.nvm'
=> Cloning into '/home/ellis/.nvm'...
fatal: Out of memory, malloc failed (tried to allocate 21474836480 bytes)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Failed to clone nvm repo. Please report this!
What did you expect to happen?
NVM installation success.
Is there anything in any of your profile files that modifies the PATH? No
If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?