{"id":1041,"date":"2023-11-09T00:53:56","date_gmt":"2023-11-09T06:53:56","guid":{"rendered":"http:\/\/www.schwie.com\/brad\/?p=1041"},"modified":"2026-03-08T13:30:44","modified_gmt":"2026-03-08T19:30:44","slug":"node-upgrade-with-brew","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=1041","title":{"rendered":"Node Upgrade with Brew"},"content":{"rendered":"<p>One of the Homebridge plugins was whining about &#8220;node&#8221; being out of date. Sure enough, when running this with Terminal:<\/p>\n<p>node &#8211;version<\/p>\n<p>Showed my Mac mini was running &#8220;v16&#8230;.&#8221; and it needed to be upgraded to 20. Easy enough with brew:<\/p>\n<p>brew install node@20<br \/>\nbrew unlink node@16<br \/>\nbrew link node@20 -f &#8211;overwrite<br \/>\nnano ~\/.zshrc<\/p>\n<p>In nano I edited the following line from:<\/p>\n<p>export PATH=&#8221;\/usr\/local\/opt\/node@16\/bin:$PATH&#8221;<\/p>\n<p>to<\/p>\n<p>export PATH=&#8221;\/usr\/local\/opt\/node@20\/bin:$PATH&#8221;<\/p>\n<p>Exit and save with:<\/p>\n<p>Control (key) and X<br \/>\nYes<\/p>\n<p>Next I closed the Terminal window, opened a new Terminal window, and typed in:<\/p>\n<p>node -v<\/p>\n<p>Which now proudly says:<\/p>\n<p>v20.9.0<\/p>\n<p>Yes!<\/p>\n<p>** UPDATE 3-8-2026 **<br \/>\nFor future upgrades, the information here looks helpful:<\/p>\n<p><a href=\"https:\/\/github.com\/homebridge\/homebridge\/wiki\/How-To-Update-Node.js\">https:\/\/github.com\/homebridge\/homebridge\/wiki\/How-To-Update-Node.js<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the Homebridge plugins was whining about &#8220;node&#8221; being out of date. Sure enough, when running this with Terminal: node &#8211;version Showed my Mac mini was running &#8220;v16&#8230;.&#8221; and it needed to be upgraded to 20. Easy enough with &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=1041\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1041","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1041"}],"version-history":[{"count":3,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1041\/revisions"}],"predecessor-version":[{"id":2096,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1041\/revisions\/2096"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}