nvm: not able to install node 14 with nvm

Operating system and version:

nvm debug output:

nvm --version: v0.39.7
$TERM_PROGRAM: Apple_Terminal
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'vkuppan'
${HOME}: /Users/vkuppan
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v20.11.0/bin:${HOME}/.volta/bin:${HOME}/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/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/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.9 (x86_64-apple-darwin23.0)'
uname -a: 'Darwin 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:55:06 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6020 arm64'
checksum binary: 'shasum'
OS version: macOS 14.2.1 23C71
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.55.1
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: /bin/rm
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /opt/homebrew/bin/git, git version 2.43.0
grep: /usr/bin/grep, grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
nvm current: v20.11.0
which node: ${NVM_DIR}/versions/node/v20.11.0/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v20.11.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v20.11.0
npm root -g: ${NVM_DIR}/versions/node/v20.11.0/lib/node_modules

nvm ls output:

v14.15.5
       v16.20.2
       v18.19.0
->     v20.11.0
         system
default -> 20 (-> v20.11.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v20.11.0) (default)
stable -> 20.11 (-> v20.11.0) (default)
lts/* -> lts/iron (-> v20.11.0)
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 (-> N/A)
lts/gallium -> v16.20.2
lts/hydrogen -> v18.19.0
lts/iron -> v20.11.0

How did you install nvm?

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

What steps did you perform?

nvm install 14

What happened?

image

What did you expect to happen?

I wanted Node version 14.21.3

Is there anything in any of your profile files that modifies the PATH?

export NVM_DIR=“$([ -z “${XDG_CONFIG_HOME-}” ] && printf %s “${HOME}/.nvm” || printf %s “${XDG_CONFIG_HOME}/nvm”)” [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

If you are having installation issues, or getting “N/A”, what does curl -I --compressed -v https://nodejs.org/dist/ print out?


About this issue

  • Original URL
  • State: open
  • Created 5 months ago
  • Reactions: 2
  • Comments: 17 (8 by maintainers)

Most upvoted comments

If you have installed nvm using homebrew, then remove it

brew uninstall nvm

also

rm -rf $NVM_DIR

then install nvm 0.39.1 using the script and then install nvm install 14, it works. I had the same issue and managed to fix that using this version.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

You should provide the checksum in the index.tab file 😃 then there won’t be a warning.

Worked flawlessly with v0.39.1 - I’ve had this same issue with a few other versions too, I guess I’ll keep using 0.39.1 for a good while in the future while I still need node v14

It’s not really an option; the python version required to build node is determined by node, and that’s the only way to get it to work.

@ljharb Don’t get me wrong, I also found your response hostile at first, but the idea here is to understand and help.

The problem here on my machine is the same as reported by @Vishnu94833, the same version and the same operating system. This only happens in NodeJS version 14, with command nvm install 14.

I took a look at another issue, which indicates downgrading the version to 0.39.1, as 0.39.7 has this error.

Temporary solution found here: https://github.com/nvm-sh/nvm/issues/3148#issuecomment-1881408472

@lucastorress if you pay attention, you’ll notice that those were edited in after i asked, and then the OP didn’t comment to notify me that it was there.

We have a code of conduct and that kind of hostile response won’t be tolerated.

@ljharb if you pay attention, @Vishnu94833 already shared the npm debug logs at the opening of the issue. Do you need more information?

@raylancordeiro please provide everything the issue template asks for

Where’s the nvm debug output? The issue template is there for a reason, please fill it out in its entirety.