Cannot install node using nvm | nvm ls-remote returns N/A

 Problem:

  • A custom installation of the CURL command causes this issue

Solution:

  • Remove the custom curl installation
  • Open new terminal
  • The CURL command comes with the system will be in path
  • Now you can try to install node using nvm


rravi$ nvm ls

        v8.10.0

       v14.18.3

->     v14.19.0

       v14.19.2

       v14.21.3

       v16.15.0

       v16.19.0

default -> v14.19.0

iojs -> N/A (default)

unstable -> N/A (default)

node -> stable (-> v16.19.0) (default)

stable -> 16.19 (-> v16.19.0) (default)

lts/* -> lts/hydrogen (-> N/A)

lts/argon -> v4.9.1 (-> N/A)

lts/boron -> v6.17.1 (-> N/A)

lts/carbon -> v8.17.0 (-> N/A)

lts/dubnium -> v10.24.1 (-> N/A)

lts/erbium -> v12.22.12 (-> N/A)

lts/fermium -> v14.21.3

lts/gallium -> v16.19.1 (-> N/A)

lts/hydrogen -> v18.15.0 (-> N/A)

rravi$ nvm install v18.15.0

Version 'v18.15.0' not found - try `nvm ls-remote` to browse available versions.

rravi$ which curl

/usr/local/opt/curl/bin/curl

I removed the custom curl and now the node install works

rravi$ which curl

/usr/bin/curl

rravi$ nvm install lts/hydrogen

Downloading and installing node v18.15.0...

Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-darwin-x64.tar.xz...

################################################################################################################################################################################ 100.0%

Computing checksum with shasum -a 256

Checksums matched!

Now using node v18.15.0 (npm v9.5.0)

Post a Comment

0 Comments