{"id":10006071,"date":"2022-08-01T18:17:53","date_gmt":"2022-08-01T10:17:53","guid":{"rendered":"https:\/\/ityet.com\/?p=10006071"},"modified":"2022-08-01T18:17:53","modified_gmt":"2022-08-01T10:17:53","slug":"m1-nvm-install%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006071","title":{"rendered":"M1 nvm install\u62a5\u9519"},"content":{"rendered":"<h2>M1\u6267\u884cnvm install\u5b89\u88c5node\u62a5\u9519404<\/h2>\n<pre><code class=\"shell\">\u279c  sales_app git:(carDetail) nvm install 12.22.12\nDownloading and installing node v12.22.12...\nDownloading https:\/\/nodejs.org\/dist\/v12.22.12\/node-v12.22.12-darwin-arm64.tar.xz...\n-#O=-#      #        #                                                                                                                                                                                                        \ncurl: (22) The requested URL returned error: 404 \nBinary download from https:\/\/nodejs.org\/dist\/v12.22.12\/node-v12.22.12-darwin-arm64.tar.xz failed, trying source.\ngrep: \/Users\/gch\/.nvm\/.cache\/bin\/node-v12.22.12-darwin-arm64\/node-v12.22.12-darwin-arm64.tar.xz: No such file or directory\nProvided file to checksum does not exist.\nBinary download failed, trying source.\nClang v3.5+ detected! CC or CXX not specified, will use Clang as C\/C++ compiler!\nLocal cache found: $NVM_DIR\/.cache\/src\/node-v12.22.12\/node-v12.22.12.tar.xz\nChecksums match! Using existing downloaded archive $NVM_DIR\/.cache\/src\/node-v12.22.12\/node-v12.22.12.tar.xz\n$&gt;.\/configure --prefix=\/Users\/gch\/.nvm\/versions\/node\/v12.22.12 &lt;\nINFO: configure completed successfully\n\/Library\/Developer\/CommandLineTools\/usr\/bin\/make -C out BUILDTYPE=Release V=0\n  touch \/Users\/gch\/.nvm\/.cache\/src\/node-v12.22.12\/files\/out\/Release\/obj.target\/node_dtrace_header.stamp\n  touch \/Users\/gch\/.nvm\/.cache\/src\/node-v12.22.12\/files\/out\/Release\/obj.target\/specialize_node_d.stamp\n  touch \/Users\/gch\/.nvm\/.cache\/src\/node-v12.22.12\/files\/out\/Release\/obj.target\/tools\/v8_gypfiles\/v8_headers.stamp\n  c++ -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 -arch arm64 -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   -c\n  c++ -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 -arch arm64 -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\/uspoof_conf.o.d.raw   -c<\/code><\/pre>\n<p>\u7ecf\u8fc7\u5206\u6790\u53d1\u73b0\u547d\u4ee4\u5b89\u88c5node\u7248\u672c\u65f6\uff0cM1\u7535\u8111\u81ea\u52a8\u62fc\u63a5\u8def\u5f84\u5982\u4e0b\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=s7lrfeTPMpuCuCl3IgkbKw%3D%3D.A17mol5BImTmI09ELRCnLt176uZRlhVyul2oA9Bied5tAw8%2BH2I81La00nXGJsqrKRHmibwghmUWP1uEqkQmUg0rhKNaC5qowC%2F%2BAy3hY3w%3D\" rel=\"nofollow\">https:\/\/nodejs.org\/dist\/v12.2&#8230;<\/a><\/p><\/blockquote>\n<p>arm64\u662fM1\u7279\u6709\u7684\u8f6f\u4ef6\u547d\u4ee4\u65b9\u5f0f \u76ee\u524dnode\u5b98\u7f51\u4e0d\u63d0\u4f9b\u6b64\u7c7b\u7684\u538b\u7f29\u5305  <a href=\"https:\/\/link.segmentfault.com\/?enc=DEE%2BerS2m%2BjDa5HoasBF%2Bg%3D%3D.5dEaP13E720t%2BcOrDm1zoziH20g6jQgGIjIPQKOyKVM%3D\" rel=\"nofollow\">\u538b\u7f29\u5305\u5b98\u7f51<\/a>  <\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042254698\" alt=\"image-20220801173458645\" title=\"image-20220801173458645\" loading=\"lazy\"><\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>\u6267\u884cinstall\u547d\u4ee4\u524d\u5148\u6267\u884cM1\u517c\u5bb9\u547d\u4ee4\uff1a<\/p>\n<blockquote><p>arch -x86_64 zsh<\/p><\/blockquote>\n<p>\u7136\u540e\u518d\u6267\u884cinstall\u4f1a\u81ea\u52a8\u4fee\u590d\u4e0b\u8f7d\u7248\u672c\u7684\u94fe\u63a5\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=%2BbIVzB4EEwS4neR1SfINEQ%3D%3D.zY34jHGU0m1PCORVRKMRVwihayChfzkWvrS0JY%2BEdka94nW4EtZWSypTAo25M3T%2BKRP%2Fz9fqd2QQJlI4IC758BtoOYq%2F4zPxqgi9%2Br%2FjR0E%3D\" rel=\"nofollow\">https:\/\/nodejs.org\/dist\/v12.2&#8230;<\/a><\/p><\/blockquote>\n<pre><code class=\"shell\">\u279c  ~ arch -x86_64 zsh\n\u279c  ~ nvm install 12.22.0         \nDownloading and installing node v12.22.0...\nDownloading https:\/\/nodejs.org\/dist\/v12.22.0\/node-v12.22.0-darwin-x64.tar.xz...\n###################################################################################################### 100.0%\nComputing checksum with shasum -a 256\nChecksums matched!\nNow using node v12.22.0 (npm v6.14.11)<\/code><\/pre>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042254696\">https:\/\/segmentfault.com\/a\/1190000042254696<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>M1\u6267\u884cnvm install\u5b89\u88c5node\u62a5\u9519404 \u279c sales_app git:(carDetail)  [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006071","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006071"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006071\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}