Closed insuhail1 closed 1 year ago
Are you on an M1 or M2 Mac?
Same problem here, M1, macOS 14.0
Presumably 14.20.0 has the same problem, but 14.19 does not?
Same problem, return 404
@Story-MathieuD and you're using the latest version of nvm?
yup, installed yesterday, but I can try to reinstall
To be clear, it's trying to download darwin arm64, and those don't exist before node 16 - so if you're on an M1/M2 mac, you need to be in a Rosetta shell to install node < 16.
Thx, it worked. Sorry to bother you 🥲
Closing as answered ( https://github.com/nvm-sh/nvm/issues/2944#issuecomment-1315335007 ) pending confirmation from the OP.
To be clear, it's trying to download darwin arm64, and those don't exist before node 16 - so if you're on an M1/M2 mac, you need to be in a Rosetta shell to install node < 16.
it worked, thanks!
To be clear, it's trying to download darwin arm64, and those don't exist before node 16 - so if you're on an M1/M2 mac, you need to be in a Rosetta shell to install node < 16.
@ljharb answer fixed the problem for me.
And here is how to open the Terminal using Rosetta:
Thanks guys
Operating system and version: Mac os v12.5
nvm debug
output:
nvm ls
output:How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
What steps did you perform?
nvm install 14.21.1
What happened?
getting below error
Found '/Users/msuhail/git/better/mortgage/barrel/.nvmrc' with version <v14> Downloading and installing node v14.21.1... Downloading https://nodejs.org/dist/v14.21.1/node-v14.21.1-darwin-arm64.tar.xz... #=#=- # # #=O#- # # -#O=- # # # -=O#- # # # curl: (22) The requested URL returned error: 404 Binary download from https://nodejs.org/dist/v14.21.1/node-v14.21.1-darwin-arm64.tar.xz failed, trying source. grep: /Users/msuhail/.nvm/.cache/bin/node-v14.21.1-darwin-arm64/node-v14.21.1-darwin-arm64.tar.xz: No such file or directory Provided file to checksum does not exist. Binary download failed, trying source. Detected that you have 10 CPU core(s) Running with 9 threads to speed up the build 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.1/node-v14.21.1.tar.xz Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v14.21.1/node-v14.21.1.tar.xz $>./configure --prefix=/Users/msuhail/.nvm/versions/node/v14.21.1 < Node.js configure: Found Python 3.10.8... INFO: configure completed successfully /Library/Developer/CommandLineTools/usr/bin/make -C out BUILDTYPE=Release V=0 c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ubrk.o ../deps/icu-small/source/common/ubrk.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ubrk.o.d.raw -c c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ucnv_bld.o ../deps/icu-small/source/common/ucnv_bld.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ucnv_bld.o.d.raw -c c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/charstr.o ../deps/icu-small/source/common/charstr.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/charstr.o.d.raw -c c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/uloc_keytype.o ../deps/icu-small/source/common/uloc_keytype.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/uloc_keytype.o.d.raw -c c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/brkeng.o ../deps/icu-small/source/common/brkeng.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/brkeng.o.d.raw -c c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ucnv_u8.o ../deps/icu-small/source/common/ucnv_u8.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ucnv_u8.o.d.raw -c c++ -o /Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ucnv_ct.o ../deps/icu-small/source/common/ucnv_ct.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/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/.deps//Users/msuhail/.nvm/.cache/src/node-v14.21.1/files/out/Release/obj.target/icuucx/deps/icu-small/source/common/ucnv_ct.o.d.raw -c
What did you expect to happen?
should be able to install node@14.21.1
Is there anything in any of your profile files that modifies the
PATH
?NA
To be clear, it's trying to download darwin arm64, and those don't exist before node 16 - so if you're on an M1/M2 mac, you need to be in a Rosetta shell to install node < 16.
@ljharb answer fixed the problem for me.
And here is how to open the Terminal using Rosetta:
- Open the Applications folder in Finder.
- Click the Search icon and type Terminal.
- Right-click the Terminal icon that will appear and select the Get Info option.
- From the Get Info window, check the checkbox next to Open using Rosetta.
- Close all open windows of the terminal and quit it and then reopen the terminal again.
- Now you can try to install Node version < 16 using NVM and it should succeed.
It worked for me. Thank you.
Doesn't work in 2024 even with rosetta with node 14.21.3 ../deps/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the valid range of values
Doesn't work in 2024 even with rosetta with node 14.21.3 ../deps/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the valid range of values
+1
To be clear, it's trying to download darwin arm64, and those don't exist before node 16 - so if you're on an M1/M2 mac, you need to be in a Rosetta shell to install node < 16.
@ljharb answer fixed the problem for me.
And here is how to open the Terminal using Rosetta:
1. Open the **Applications** folder in **Finder**. 2. Click the **Search** icon and type **Terminal**. 3. **Right-click** the Terminal icon that will appear and select the **Get Info** option. 4. From the Get Info window, check the checkbox next to **Open using Rosetta**. 5. Close all open windows of the terminal and quit it and then reopen the terminal again. 6. Now you can try to install Node version < 16 using NVM and it should succeed.
This doesn't work in 2024. The following solution worked: https://stackoverflow.com/a/76399805
Doesn't work in 2024 even with rosetta with node 14.21.3 ../deps/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the valid range of values
Try changing the machine's architecture type from the default arm64
to x86_64
To check the current architecture enter the command below.
arch
If it returns arm64
, ether the following command:
arch -x86_64 zsh
Then, try nvm i 14
again. Worked for me on M3 Pro.
@ikattakath How would I then undo that to go back to default. arch -arm64 zsh
?
EDIT: Yes that does seem to work. But also any new Terminal window will be back to normal. That command only changes the current session I guess.
To be clear, it's trying to download darwin arm64, and those don't exist before node 16 - so if you're on an M1/M2 mac, you need to be in a Rosetta shell to install node < 16.
@ljharb answer fixed the problem for me. And here is how to open the Terminal using Rosetta:
1. Open the **Applications** folder in **Finder**. 2. Click the **Search** icon and type **Terminal**. 3. **Right-click** the Terminal icon that will appear and select the **Get Info** option. 4. From the Get Info window, check the checkbox next to **Open using Rosetta**. 5. Close all open windows of the terminal and quit it and then reopen the terminal again. 6. Now you can try to install Node version < 16 using NVM and it should succeed.
This doesn't work in 2024. The following solution worked: https://stackoverflow.com/a/76399805
this solution worked for me. Thanks!
@ikattakath work for me M2 Pro
Doesn't work in 2024 even with rosetta with node 14.21.3 ../deps/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the valid range of values
Try changing the machine's architecture type from the default
arm64
tox86_64
To check the current architecture enter the command below.
arch
If it returns
arm64
, ether the following command:arch -x86_64 zsh
Then, try
nvm i 14
again. Worked for me on M3 Pro.
Worked for me, Thank you
Operating system and version: Mac os v12.5
nvm debug
output:nvm ls
output:How did you install
nvm
?What steps did you perform?
What happened?
getting below error
What did you expect to happen?
should be able to install node@14.21.1
Is there anything in any of your profile files that modifies the
PATH
?NA