{"id":10225,"date":"2025-02-11T18:00:32","date_gmt":"2025-02-11T09:00:32","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=10225"},"modified":"2025-02-11T18:00:32","modified_gmt":"2025-02-11T09:00:32","slug":"mac%e3%81%a7node-js%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%92%e3%82%a2%e3%83%83%e3%83%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=10225","title":{"rendered":"Mac\u3067Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>Mac\u3067\u3001React\u306e\u30b3\u30fc\u30c9\u3092\u8d77\u52d5\u3059\u308b\u308b\u305f\u3081\u306b<\/p>\n\n\n\n<p>npm run dev<\/p>\n\n\n\n<p>\u3092\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f<\/p>\n\n\n\n<p>*****@MacBook-Air-2 my-app % npm run dev<br>npm does not support Node.js v15.6.0<br>You should probably upgrade to a newer version of node as we<br>can&#8217;t make any promises that npm will work with this version.<br>You can find the latest version at https:\/\/nodejs.org\/<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>my-app@0.1.0 dev<br>next dev &#8211;turbopack<\/p>\n<\/blockquote>\n\n\n\n<p>node:internal\/modules\/cjs\/loader:928<br>throw err;<br>NPM\u304c\u3001\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u306a\u3044\u3089\u3057\u3044\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n\n\n\n<p>ChatGPT\u5148\u751f\u306b\u805e\u3044\u3066\u3001\u8272\u3005\u3068\u8a66\u3057\u3066\u307f\u307e\u3057\u305f<\/p>\n\n\n\n<p>brew uninstall &#8211;ignore-dependencies node<br>brew uninstall yarn<\/p>\n\n\n\n<p>which node<\/p>\n\n\n\n<p>\/\/ \u4ee5\u4e0b\u3001which node\u3067\u51fa\u305f\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066node,mode_modules\u3092\u524a\u9664<\/p>\n\n\n\n<p>sudo rm -rf \/usr\/local\/bin\/node<\/p>\n\n\n\n<p>sudo rm -rf \/usr\/local\/lib\/node_modules<\/p>\n\n\n\n<p>npm install -g n<\/p>\n\n\n\n<p>sudo n stable<\/p>\n\n\n\n<p>node -v<\/p>\n\n\n\n<p>npm cache clean &#8211;force<br>npm install<\/p>\n\n\n\n<p>npm run dev<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3084\u308a\u65b9\u3067\u3044\u3051\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>node\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u3001\u73fe\u5728\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u7269\u7406\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u3067\u3001React\u306e\u30b3\u30fc\u30c9\u3092\u8d77\u52d5\u3059\u308b\u308b\u305f\u3081\u306b npm run dev \u3092\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f *****@MacBook-Air-2 my-app % npm run devnpm does not s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[215,131],"tags":[],"class_list":["post-10225","post","type-post","status-publish","format-standard","hentry","category-node-js","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10225"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10225\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}