coreybutler / nvm-windows

A node.js version management utility for Windows. Ironically written in Go.
MIT License
36.01k stars 3.24k forks source link

[Issue]: unable to install latest node #1106

Closed ahmedelq closed 4 months ago

ahmedelq commented 4 months ago

What happened?

I'm unable to install the latest node version

$ nvm --version
0.39.7
$ nvm version
v20.11.1
$ nvm install latest
Version 'latest' not found - try `nvm ls-remote` to browse available versions.

What did you expect to happen?

Install the latest node version

Version

1.1.11 or newer (Default)

Which version of Windows?

No response

Which locale?

English (Default)

Which shell are you running NVM4W in?

WSL or WSL2

User Permissions?

Administrative Privileges, Elevated

Is Developer Mode enabled?

None

Relevant log/console output

No response

Debug Output

nvm --version: v0.39.7
$TERM_PROGRAM: tmux
$SHELL: /bin/bash
$SHLVL: 2
whoami: 'unix'
${HOME}: /home/unix
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v21.6.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python312/Scripts/:/mnt/c/Python312/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/ProgramData/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/ahmed_alelg/AppData/Local/Microsoft/WindowsApps:/mnt/c/ProgramData/mingw64/mingw64/bin:/mnt/c/Users/ahmed_alelg/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0/LocalCache/local-packages/Python312/Scripts:/snap/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)'
uname -a: 'Linux 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux'
checksum binary: 'sha256sum'
OS version: Ubuntu 22.04.3 LTS
awk: /usr/bin/awk, GNU Awk 5.1.0, API: 3.0 (GNU MPFR 4.1.0, GNU MP 6.2.1)
curl: /usr/bin/curl, curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16
wget: /usr/bin/wget, GNU Wget 1.21.2 built on linux-gnu.
git: /usr/bin/git, git version 2.34.1
grep: /usr/bin/grep (grep --color=auto), grep (GNU grep) 3.7
sed: /usr/bin/sed, sed (GNU sed) 4.8
cut: /usr/bin/cut, cut (GNU coreutils) 8.32
basename: /usr/bin/basename, basename (GNU coreutils) 8.32
rm: /usr/bin/rm, rm (GNU coreutils) 8.32
mkdir: /usr/bin/mkdir, mkdir (GNU coreutils) 8.32
xargs: /usr/bin/xargs, xargs (GNU findutils) 4.8.0
nvm current: v21.6.2
which node: ${NVM_DIR}/versions/node/v21.6.2/bin/node
which iojs:
which npm: ${NVM_DIR}/versions/node/v21.6.2/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v21.6.2
npm root -g: ${NVM_DIR}/versions/node/v21.6.2/lib/node_modules

Anything else?

No response

coreybutler commented 4 months ago

For anyone reaching this post via Google, the post above is actually related to nvm-sh (Linux), not nvm-windows. However; there is a common issue for all node version managers that can temporarily prevent the latest version from installing.