nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nvm ls-remote returns N/A

Harrison3098 opened this issue · comments

Operating system and version: mac os 14.4

nvm debug output:

nvm --version: v0.39.7
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'sagit_zhx'
${HOME}: /Users/sagit_zhx
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${HOME}/Library/pnpm:${NVM_DIR}/versions/node/v21.0.0-rc.1/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/bin:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/tools/bin:${HOME}/Library/Android/sdk/platform-tools:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/tools/bin:${HOME}/Library/Android/sdk/platform-tools:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/tools/bin:${HOME}/Library/Android/sdk/platform-tools
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: 'https://npmmirror.com/node'
$NVM_IOJS_ORG_MIRROR: 'https://npmmirror.com/iojs'
shell version: 'zsh 5.9 (x86_64-apple-darwin23.0)'
uname -a: 'Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 arm64'
checksum binary: 'shasum'
OS version: macOS 14.4 23E214
awk: /usr/bin/awk, awk version 20200816
curl: /usr/bin/curl, curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: rm: aliased to trash (trash)
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/local/bin/git, git version 2.33.0
ls: grep:: No such file or directory
grep: grep: aliased to grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} (grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}), grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
nvm current: v21.0.0-rc.1
which node: ${NVM_DIR}/versions/node/v21.0.0-rc.1/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v21.0.0-rc.1/bin/npm
npm config get prefix: npm WARN cli npm v10.2.0 does not support Node.js v21.0.0-rc.1. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
${NVM_DIR}/versions/node/v21.0.0-rc.1
npm root -g: npm WARN cli npm v10.2.0 does not support Node.js v21.0.0-rc.1. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
${NVM_DIR}/versions/node/v21.0.0-rc.1/lib/node_modules

nvm ls output:

      v12.22.12
       v14.19.1
       v16.20.0
       v18.16.0
-> v21.0.0-rc.1
         system
default -> node (-> v21.0.0-rc.1)
rc -> v21.0.0-rc.1
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v21.0.0-rc.1) (default)
stable -> 21.0 (-> v21.0.0-rc.1) (default)
lts/* -> lts/argon (-> N/A)
lts/argon -> v4.4.0-rc.4 (-> N/A)

How did you install nvm?

zsh-nvm

What steps did you perform?

reinstalled nvm, tried same steps with and without vpn/proxies.

What happened?

I can't install/view node versions. I see N/A are available.However, I'm able to use "nvm install rc" to install release candidates.

What did you expect to happen?

I expected stuff to work.

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?

* Uses proxy env variable https_proxy == 'http://127.0.0.1:61341'
*   Trying 127.0.0.1:61341...
* Connected to 127.0.0.1 (127.0.0.1) port 61341
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to nodejs.org:443
> CONNECT nodejs.org:443 HTTP/1.1
> Host: nodejs.org:443
> User-Agent: curl/8.4.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
HTTP/1.1 200 Connection established
<

* CONNECT phase completed
* CONNECT tunnel established, response 200
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=*.nodejs.org
*  start date: Feb 28 00:00:00 2024 GMT
*  expire date: Mar 30 23:59:59 2025 GMT
*  subjectAltName: host "nodejs.org" matched cert's "nodejs.org"
*  issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://nodejs.org/dist/
* [HTTP/2] [1] [:method: HEAD]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: nodejs.org]
* [HTTP/2] [1] [:path: /dist/]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
* [HTTP/2] [1] [accept-encoding: deflate, gzip]
> HEAD /dist/ HTTP/2
> Host: nodejs.org
> User-Agent: curl/8.4.0
> Accept: */*
> Accept-Encoding: deflate, gzip
>
< HTTP/2 200
HTTP/2 200
< date: Tue, 26 Mar 2024 08:54:58 GMT
date: Tue, 26 Mar 2024 08:54:58 GMT
< content-type: text/html
content-type: text/html
< cache-control: public, max-age=3600, s-maxage=14400
cache-control: public, max-age=3600, s-maxage=14400
< last-modified: Tue, 26 Mar 2024 07:35:06 GMT
last-modified: Tue, 26 Mar 2024 07:35:06 GMT
< cf-cache-status: HIT
cf-cache-status: HIT
< age: 4739
age: 4739
< vary: Accept-Encoding
vary: Accept-Encoding
< strict-transport-security: max-age=31536000; includeSubDomains; preload
strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-content-type-options: nosniff
x-content-type-options: nosniff
< server: cloudflare
server: cloudflare
< cf-ray: 86a5eb44e8f83dc9-SIN
cf-ray: 86a5eb44e8f83dc9-SIN
< content-encoding: gzip
content-encoding: gzip

<
* Connection #0 to host 127.0.0.1 left intact

having the same issue, I had to use vpn to get it to work

You can’t install release candidates by default, so presumably you have the mirror env var pointing to the wrong place.

Also, the nvm debug output isn’t provided.

You can’t install release candidates by default, so presumably you have the mirror env var pointing to the wrong place.

Also, the nvm debug output isn’t provided.

debug

nvm --version: v0.39.7
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'sagit_zhx'
${HOME}: /Users/sagit_zhx
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${HOME}/Library/pnpm:${NVM_DIR}/versions/node/v21.0.0-rc.1/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/bin:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/tools/bin:${HOME}/Library/Android/sdk/platform-tools:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/tools/bin:${HOME}/Library/Android/sdk/platform-tools:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/tools/bin:${HOME}/Library/Android/sdk/platform-tools
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: 'https://npmmirror.com/node'
$NVM_IOJS_ORG_MIRROR: 'https://npmmirror.com/iojs'
shell version: 'zsh 5.9 (x86_64-apple-darwin23.0)'
uname -a: 'Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103 arm64'
checksum binary: 'shasum'
OS version: macOS 14.4 23E214
awk: /usr/bin/awk, awk version 20200816
curl: /usr/bin/curl, curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: rm: aliased to trash (trash)
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/local/bin/git, git version 2.33.0
ls: grep:: No such file or directory
grep: grep: aliased to grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} (grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}), grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
nvm current: v21.0.0-rc.1
which node: ${NVM_DIR}/versions/node/v21.0.0-rc.1/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v21.0.0-rc.1/bin/npm
npm config get prefix: npm WARN cli npm v10.2.0 does not support Node.js v21.0.0-rc.1. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
${NVM_DIR}/versions/node/v21.0.0-rc.1
npm root -g: npm WARN cli npm v10.2.0 does not support Node.js v21.0.0-rc.1. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
${NVM_DIR}/versions/node/v21.0.0-rc.1/lib/node_modules

You can’t install release candidates by default, so presumably you have the mirror env var pointing to the wrong place.默认情况下,您无法安装候选版本,因此可能您的镜像 env var 指向错误的位置。

Also, the nvm debug output isn’t provided.此外,未提供 nvm 调试输出。

closed, wrong mirror env var