nvm
nvm copied to clipboard
curl: (22) The requested URL returned error: 404
Operating system and version:
nvm debug output:
$ nvm debug [16:54:23]
nvm --version: v0.39.3
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'huckleberry.carignan'
${HOME}: /Users/huckleberry.carignan
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: /opt/homebrew/opt/jpeg/bin:/opt/homebrew/opt/jpeg/bin:/opt/homebrew/opt/jpeg/bin:${HOME}/.sdkman/candidates/maven/current/bin:${HOME}/.sdkman/candidates/java/current/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/bin/:/Users/mac/.npm-global/lib/node_modules/typescript/bin/tsc:${HOME}/.local/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8.1 (x86_64-apple-darwin22.0)'
uname -a: 'Darwin 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64'
checksum binary: 'sha256sum'
OS version: macOS 13.0.1 22A400
awk: /usr/bin/awk, awk version 20200816
curl: /usr/bin/curl, curl 7.84.0 (x86_64-apple-darwin22.0) libcurl/7.84.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.47.0
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.39.1
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: system
which node: /usr/local/bin/node
which iojs: iojs not found
which npm: /usr/local/bin/npm
npm config get prefix: /usr/local
npm root -g: /usr/local/lib/node_modules
FAIL
nvm ls output:
$ nvm ls [16:54:31]
-> system
iojs -> N/A (default)
node -> stable (-> N/A) (default)
unstable -> N/A (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.2 (-> N/A)
lts/gallium -> v16.19.0 (-> N/A)
lts/hydrogen -> v18.14.0 (-> N/A)
How did you install nvm?
What steps did you perform?
$nvm i 14
What happened?
$ nvm i 14 [16:52:12]
Downloading and installing node v14.21.2...
Downloading https://nodejs.org/dist/v14.21.2/node-v14.21.2-darwin-arm64.tar.xz...
curl: (22) The requested URL returned error: 404
Binary download from https://nodejs.org/dist/v14.21.2/node-v14.21.2-darwin-arm64.tar.xz failed, trying source.
grep: /Users/huckleberry.carignan/.nvm/.cache/bin/node-v14.21.2-darwin-arm64/node-v14.21.2-darwin-arm64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Local cache found: ${NVM_DIR}/.cache/src/node-v14.21.2/node-v14.21.2.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v14.21.2/node-v14.21.2.tar.xz
$>./configure --prefix=/Users/huckleberry.carignan/.nvm/versions/node/v14.21.2 <
Node.js configure: Found Python 3.9.6...
INFO: configure completed successfully
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C out BUILDTYPE=Release V=0
touch /Users/huckleberryy.carignan/.nvm/.cache/src/node-v14.21.2/files/out/Release/obj.target/node_dtrace_header.stamp
touch /Users/huckleberry.carignan/.nvm/.cache/src/node-v14.21.2/files/out/Release/obj.target/specialize_node_d.stamp
c++ -o /Users/huckleberry.carignan/.nvm/.cache/src/node-v14.21.2/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/uniset.o ../deps/icu-small/source/common/uniset.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DU_COMMON_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/common -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-exceptions -fno-strict-aliasing -MMD -MF /Users/huckleberry.carignan/.nvm/.cache/src/node-v14.21.2/files/out/Release/.deps//Users/huckleberry.carignan/.nvm/.cache/src/node-v14.21.2/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/uniset.o.d.raw -c
and then it repeats forever......
What did you expect to happen?
the node version 14's to be installed
Is there anything in any of your profile files that modifies the PATH?
If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?
Is this an M1 or M2 Mac? node doesn't support those before v16, so you'll need to use a Rosetta shell.
M1 Mac. I noticed I can
nvm install 12
and
nvm install 13
and
nvm install 15
without any issues. It's when I
nvm install 14
that it blows up
That is interesting - altho the latest version of node 14 i think does support M1, so maybe that's the difference. What happens if you try nvm install 14.0?
That is interesting - altho the latest version of node 14 i think does support M1, so maybe that's the difference. What happens if you try
nvm install 14.0?
I had same issues but this worked! Thanks 👍
aha, ok - presumably there's a specific node 14 version where it will stop working for you. It'd be really helpful if you could binary search and figure out which one :-) it may be a bug in node itself.
If you use oh-my-zsh, try disabling some of the aliases enabled via plugins.
For me, I had to disable git for some reason. I spent some time looking at the code, but haven't yet found the culprit alias.
There could be more reasons, there are tons of aliases that cause issues with NVM.
If you use oh-my-zsh, try disabling some of the aliases enabled via plugins.
For me, I had to disable
gitfor some reason. I spent some time looking at the code, but haven't yet found the culprit alias.There could be more reasons, there are tons of aliases that cause issues with NVM.
I never would have guess that!! But that worked for me too!!!!
I had the same problem. Solved by installing the version 14.15.0
nvm install 14.15.0
That is interesting - altho the latest version of node 14 i think does support M1, so maybe that's the difference. What happens if you try
nvm install 14.0?
it notifies that not found drawin-arm64. So I wanted to see node download cdn. well, its really not. but why search drawin-arm64 name.
What's the full URL that's not found?