当前位置: 首页 > Web前端 > HTML

M1nvm安装报错

时间:2023-03-28 00:19:12 HTML

M1执行nvminstall安装node报错404?sales_appgit:(carDetail)nvminstall12.22.12Downloadingandinstallingnodev12.22.12...Downloadinghttps://nodejs.org/dist/v12.22.12/node-v12.22.12-darwin-arm64.tar.xz...-#O=-###curl:(22)请求的URL返回错误:404从https://nodejs.org/dist/v12.22.12/node-v12下载的二进制文件.22.12-darwin-arm64.tar.xz失败,尝试source.grep:/Users/gch/.nvm/.cache/bin/node-v12.22.12-darwin-arm64/node-v12.22.12-darwin-arm64。tar.xz:NosuchfileordirectoryProvidedfiletochecksumdoesnotexist.Binarydownloadfailed,tryingsource.Clangv3.5+detected!未指定CC或CXX,将使用Clang作为C/C++编译器!找到本地缓存:$NVM_DIR/.cache/src/node-v12.22.12/node-v12.22.12.tar.xzChecksums匹配!我们正在下载现有的存档$NVM_DIR/.cache/src/node-v12.22.12/node-v12.22.12.tar.xz$>./configure--prefix=/Users/gch/.nvm/versions/node/v12。22.12<信息:配置成功完成/Library/Developer/CommandLineTools/usr/bin/make-CoutBUILDTYPE=ReleaseV=0touch/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/node_dtrace_header.stamptouch/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/specialize_node_d.stamptouch/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/tools/v8_gypfiles/v8_headers.stampc++??-o/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/nultrans.o../deps/icu-small/source/i18n/nultrans.cpp'-DV8_DEPRECATION_WARNINGS''-DV8_IMMINENT_DEPRECATION_WARNINGS''-D_DARWIN_USE_64_BIT_INODE=1''-DOPENSSL_NO_PINSHARED''-DOPENSSL_THREADS''-DOPENSSL_NO_ASM''-DU_I18N_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/i18n-I../deps/icu-small/source/common-O3-gdwarf-2-mmacosx-version-min=10.10-archarm64-Wall-Wendif-labels-W-Wno-unused-parameter-std=gnu++1y-stdlib=libc++-fno-exceptions-fno-strict-aliasing-MMD-MF/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/.deps//Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/nultrans.o.d.raw-cc++-o/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/uspoof_conf.o../deps/icu-small/source/i18n/uspoof_conf.cpp'-DV8_DEPRECATION_WARNINGS''-DV8_IMMINENT_DEPRECATION_WARNINGS''-D_DARWIN_USE_64_BIT_INODE=1''-DOPENSSL_NO_PINSHARED''-DOPENSSL_THREADS''-DOPENSSL_NO_ASM''-DU_I18N_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/i18n-I../deps/icu-small/source/common-O3-gdwarf-2-mmacosx-version-min=10.10-archarm64-Wall-Wendif-labels-W-Wno-未使用参数-std=gnu++1y-stdlib=libc++-fno-exceptions-fno-strict-aliasing-MMD-MF/Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/.deps//Users/gch/.nvm/.cache/src/node-v12.22.12/files/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/uspoof_conf.o.d.raw-c分析后发现,命令安装node版本时,M1电脑自动拼接路径如下:https://nodejs.org/dist/v12.2...arm64是一个M1独有的软件命令方式。目前node官网没有提供这样的压缩包官网解决方案在执行install命令前执行M1兼容命令:arch-x86_64zsh然后执行install会自动修复链接到下载版本:https://nodejs。org/dist/v12.2...?~arch-x86_64zsh?~nvminstall12.22.0下载并安装节点v12.22.0...下载https://nodejs.org/dist/v12.22.0/node-v12.22.0-darwin-x64.tar.xz...######################################################################################################100.0%计算校验和与shasum-a256Checksums匹配!现在使用节点v12.22.0(npmv6.14.11)

最新推荐
猜你喜欢