{"id":48467,"date":"2025-12-29T06:41:16","date_gmt":"2025-12-29T06:41:16","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=48467"},"modified":"2025-12-31T05:39:00","modified_gmt":"2025-12-31T05:39:00","slug":"brew%e3%81%a7node-js%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aebrew-install-node%e3%82%ac%e3%82%a4%e3%83%89","status":"publish","type":"post","link":"https:\/\/www.carmatec.com\/ja\/blog\/brew-install-node-guide-to-install-node-js-with-brew\/","title":{"rendered":"Node\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff1aHomebrew\u3067Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30ac\u30a4\u30c9"},"content":{"rendered":"<p>Node.js\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u8907\u96d1\u306a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3082\u306e\u3092\u52d5\u304b\u3059\u3001\u73fe\u4ee3\u306eJavaScript\u958b\u767a\u306e\u30d0\u30c3\u30af\u30dc\u30fc\u30f3\u3068\u306a\u3063\u3066\u3044\u308b\u30022026\u5e741\u6708\u73fe\u5728\u3001\u6700\u65b0\u306e\u9577\u671f\u30b5\u30dd\u30fc\u30c8\uff08LTS\uff09\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 <strong>Node.js 24.x<\/strong> (\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u3001macOS\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306f\u7c21\u5358\u3067\u3059\u3002 <strong>\u30db\u30fc\u30e0\u30d6\u30ea\u30e5\u30fc<\/strong>-\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u7c21\u7d20\u5316\u3059\u308b\u3001\u611b\u3059\u3079\u304d\u30d1\u30c3\u30b1\u30fc\u30b8\u30fb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3002.<\/p>\n<p>Node.js\u3068Homebrew\u3068\u306f\u4f55\u304b\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3001\u691c\u8a3c\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3001\u3088\u304f\u3042\u308b\u554f\u984c\u3001\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u306f\u3001Node.js \u3068 npm (Node Package Manager) \u3092\u4f7f\u3063\u3066\u6700\u521d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30eb\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002.<\/p>\n<h3><strong>Node.js\u3068\u306f\uff1f<\/strong><\/h3>\n<p>Node.js\u306f\u3001Chrome\u306eV8\u30a8\u30f3\u30b8\u30f3\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0JavaScript\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a\u3001API\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3001\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u30a2\u30d7\u30ea\u306b\u6700\u9069\u3067\u3059\u3002.<\/p>\n<p>\u4e3b\u306a\u7279\u5fb4<\/p>\n<ul>\n<li><strong>\u975e\u540c\u671f\u304a\u3088\u3073\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5<\/strong>:\u591a\u6570\u306e\u63a5\u7d9a\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3002.<\/li>\n<li><strong>npm\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0<\/strong>:\u6570\u767e\u4e07\u3082\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u4e16\u754c\u6700\u5927\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30fb\u30ec\u30b8\u30b9\u30c8\u30ea\u3001npm\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u307e\u3059\u3002.<\/li>\n<li><strong>\u591a\u7528\u9014<\/strong>:Netflix\u3001LinkedIn\u3001Uber\u306a\u3069\u306e\u4f01\u696d\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3002.<\/li>\n<\/ul>\n<p>Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001npm\u3082\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002.<\/p>\n<h3><strong>\u30db\u30fc\u30e0\u30d6\u30ea\u30e5\u30fc\u3068\u306f\uff1f<\/strong><\/h3>\n<p>Homebrew\uff08\u3057\u3070\u3057\u3070 \u201cbrew \u201d\u3068\u547c\u3070\u308c\u308b\uff09\u306f\u3001macOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3068\u3057\u3066\u6b20\u304b\u3059\u3053\u3068\u306e\u3067\u304d\u306a\u3044\u3082\u306e\u3060\u3002\u30b7\u30f3\u30d7\u30eb\u306a\u30bf\u30fc\u30df\u30ca\u30eb\u30b3\u30de\u30f3\u30c9\u3067\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3001\u4f9d\u5b58\u95a2\u4fc2\u3084\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u7c21\u5358\u306b\u7ba1\u7406\u3067\u304d\u308b\u3002.<\/p>\n<p><strong>\u306a\u305cNode.js\u306bHomebrew\u3092\u4f7f\u3046\u306e\u304b\uff1f<\/strong><\/p>\n<ul>\n<li>sudo\u6a29\u9650\u306f\u4e0d\u8981\uff08\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u554f\u984c\u3092\u56de\u907f\uff09\u3002.<\/li>\n<li>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7c21\u5358\u3002.<\/li>\n<li>macOS\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3002.<\/li>\n<li>\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u306f\u3001\u516c\u5f0f\u306e.pkg\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3088\u308a\u3082\u597d\u307e\u3057\u3044\u3002.<\/li>\n<\/ul>\n<p>Homebrew\u306f\u30d5\u30ea\u30fc\u3067\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u3002.<\/p>\n<h3><strong>\u524d\u63d0\u6761\u4ef6<\/strong><\/h3>\n<p>\u59cb\u3081\u308b\u524d\u306b<\/p>\n<ul>\n<li>macOS\u304c\u52d5\u4f5c\u3059\u308bMac\uff08Intel\u307e\u305f\u306fApple Silicon\uff09\u3002.<\/li>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\uff08\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff1e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\uff09\u306e\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u65b9\u6cd5\u3002.<\/li>\n<li>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u3002.<\/li>\n<li>\u7ba1\u7406\u8005\u30a2\u30af\u30bb\u30b9\uff08Homebrew\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\uff09\u3002.<\/li>\n<\/ul>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e88\u5099\u77e5\u8b58\u306f\u4e0d\u8981\uff01<\/p>\n<h3><strong>\u30b9\u30c6\u30c3\u30d71\uff1aHomebrew\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><\/h3>\n<p>\u3059\u3067\u306bHomebrew\u3092\u304a\u6301\u3061\u306e\u5834\u5408\u306f\u3001\u30b9\u30c6\u30c3\u30d72\u306b\u9032\u3093\u3067\u304f\u3060\u3055\u3044\u3002.<\/p>\n<p>1.\u958b\u304f <strong>\u30bf\u30fc\u30df\u30ca\u30eb<\/strong> (Spotlight\u3067Cmd + Space\u3067\u691c\u7d22\uff09\u3002.<\/p>\n<p>2.\u516c\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\n\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<p>3.\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3001\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u3001\u6570\u5206\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002.<\/p>\n<p>\u30b5\u30dd\u30fc\u30c8.apple.com<\/p>\n<p>4.\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3046\u3002\u65b0\u3057\u3044macOS\uff08Ventura+\uff09\u3067\u306f\u3001\u30b7\u30a7\u30eb\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\uff08~\/.zprofile\u307e\u305f\u306f~\/.zshrc\uff09\u306b\u884c\u304c\u8ffd\u52a0\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002.<\/p>\n<p>5.\u8a2d\u7f6e\u3092\u78ba\u8a8d\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nbrew --\u30d0\u30fc\u30b8\u30e7\u30f3<\/pre>\n<p>Homebrew 4.x.x\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002.<\/p>\n<p>6.Homebrew\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nbrew\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/pre>\n<p>\u3088\u304f\u3042\u308b\u554f\u984c\u3082\u3057 \u201ccommand not found: brew \u201d\u3068\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u518d\u8d77\u52d5\u3059\u308b\u304b\u3001\u63a8\u5968\u3055\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066Homebrew\u3092PATH\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002.<\/p>\n<h3><strong>\u30b9\u30c6\u30c3\u30d72\uff1aHomebrew\u3067Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/strong><\/h3>\n<p>\u30db\u30fc\u30e0\u30d6\u30ea\u30e5\u30fc\u306e <code>\u30ce\u30fc\u30c9<\/code> \u5f0f\u306f\u3001\u6700\u65b0\u306e\u5b89\u5b9a\u7248\uff08\u73fe\u5728\u30012026\u5e74\u5f8c\u534a\u306eNode.js 24.x LTS\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002.<\/p>\n<p>1.\u30bf\u30fc\u30df\u30ca\u30eb\u3067<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\n\u30ce\u30fc\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/pre>\n<p>2.Homebrew\u304cNode.js\u3001npm\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30ec\u30b9\u30d0\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<pre>==&gt; https:\/\/ghcr.io\/v2\/homebrew\/core\/node \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9...\r\n==&gt; \u30ce\u30fc\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n==&gt; node\u3092\u6ce8\u3050--24.12.0.arm64_ventura.bottle.tar.gz<\/pre>\n<p>3.\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff08\u4f8b\u3048\u3070\u3001node@20\u306e\u3088\u3046\u306a\u53e4\u3044LTS\uff09\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nbrew install node@20<\/pre>\n<p>4.\u3057\u304b\u3057\u521d\u5fc3\u8005\u306f\u3001\u6700\u65b0\u306eLTS\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30ce\u30fc\u30c9\u306b\u3053\u3060\u308f\u308b\u3053\u3068\u3060\u3002.<br \/>\ncs.swarthmore.edu<\/p>\n<h3><strong>\u30b9\u30c6\u30c3\u30d7 3: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/strong><\/h3>\n<p>\u5b8c\u4e86\u3057\u305f\u3089<\/p>\n<p>1.Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\n\u30ce\u30fc\u30c9 --\u30d0\u30fc\u30b8\u30e7\u30f3\r\n# \u307e\u305f\u306f node -v<\/pre>\n<p>\u671f\u5f85\u3055\u308c\u308b\u3082\u306e\uff1av24.12.0\uff08\u307e\u305f\u306f\u305d\u308c\u306b\u8fd1\u3044\u6700\u8fd1\u306eLTS\uff09\u3002.<\/p>\n<p>2.npm\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nnpm --\u30d0\u30fc\u30b8\u30e7\u30f3\r\n# \u307e\u305f\u306f npm -v<\/pre>\n<p>\u671f\u5f85\u3057\u3066\u3044\u308b\uff1a10.x.x\u306e\u3088\u3046\u306a\u3082\u306e\u3002.<\/p>\n<p>3.\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b <code>hello.js<\/code>:<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\necho 'console.log(\"Hello, Node.js!\");' &gt; hello.js\r\n\u30ce\u30fc\u30c9 hello.js<\/pre>\n<p>\u51fa\u529b\uff1a <code>\u3053\u3093\u306b\u3061\u306f\u3001Node.js\uff01<\/code><\/p>\n<p>4. treehouse.github.io<\/p>\n<p>5. Radixweb.com<\/p>\n<p>\u304a\u3081\u3067\u3068\u3046\uff01Node.js\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3002.<\/p>\n<h3><strong>Node.js\u3068npm\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/strong><\/h3>\n<p>Homebrew\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u7c21\u5358\u3060\u3002.<\/p>\n<p>1.\u307e\u305aHomebrew\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nbrew\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/pre>\n<p>2.Node.js\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\n\u30ce\u30fc\u30c9\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b<\/pre>\n<p>\u3053\u308c\u306f\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97\u3059\u308b\u3002.<\/p>\n<p>3.npm\u306e\u5834\u5408\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nnpm install -g npm@latest<\/pre>\n<p>4.\u53e4\u3044\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nnpm outdated -g<\/pre>\n<h3><strong>npm\u306b\u3088\u308b\u30b0\u30ed\u30fc\u30d0\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h3>\n<p>npm\u3092\u4f7f\u3048\u3070\u3001\u30c4\u30fc\u30eb\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\uff08\u3069\u3053\u3067\u3082\u5229\u7528\u53ef\u80fd\uff09\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002.<\/p>\n<p>\u521d\u5fc3\u8005\u306e\u305f\u3081\u306e\u4f8b<\/p>\n<ul>\n<li>\u7c21\u5358\u306a\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u6210\u3059\u308b\uff1a\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nnpm install -g http-server<\/pre>\n<\/li>\n<li>Yarn\u3084pnpm\u306e\u3088\u3046\u306a\u73fe\u4ee3\u7684\u306a\u9078\u629e\u80a2\uff1a\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nnpm install -g yarn<\/pre>\n<\/li>\n<\/ul>\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u5e38\u306b -g \u3092\u4f7f\u7528\u3059\u308b\u3002.<\/p>\n<h3><strong>Node.js\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h3>\n<pre>\u5fc5\u8981\u3067\u3042\u308c\u3070\uff1a\r\n\r\n\u30d0\u30c3\u30b7\u30e5\r\n\u30ce\u30fc\u30c9\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\n\r\n\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5834\u5408\r\n\r\n\u30d0\u30c3\u30b7\u30e5\r\nbrew \u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb node@20\r\n\r\n\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\r\n\r\n\u30d0\u30c3\u30b7\u30e5\r\n\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7<\/pre>\n<h3><strong>\u3088\u304f\u3042\u308b\u554f\u984c\u3068\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/strong><\/h3>\n<ul>\n<li><strong>\u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\uff1a\u30ce\u30fc\u30c9<\/strong>\n<ul>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002.<\/li>\n<li>Homebrew\u306ebin\u304cPATH\u306b\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff1a <code>\/opt\/homebrew\/bin<\/code> (\u30a2\u30c3\u30d7\u30eb\u30fb\u30b7\u30ea\u30b3\u30f3\uff09\u307e\u305f\u306f <code>\/usr\/local\/bin<\/code> (\u30a4\u30f3\u30c6\u30eb\uff09\u3002.<\/li>\n<li>\u8d70\u308b <code>\u30d6\u30ea\u30e5\u30fc\u30fb\u30c9\u30af\u30bf\u30fc<\/code> \u8a3a\u65ad\u7528.<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc<\/strong>\n<ul>\n<li>\u81ea\u5bb6\u88fd\u30d3\u30fc\u30eb\u306f\u30b9\u30c9\u3092\u907f\u3051\u308b-\u30d3\u30fc\u30eb\u306b\u30b9\u30c9\u3092\u4f7f\u308f\u306a\u3044\u3002.<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u30a2\u30c3\u30d7\u30eb\u30fb\u30b7\u30ea\u30b3\u30f3\uff08M1\/M2\/M3\uff09\u306e\u554f\u984c\u70b9<\/strong>\n<ul>\n<li>Homebrew\u306f\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001Rosetta\u304c\u5e72\u6e09\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002.<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u4ee5\u524d\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u306e\u7af6\u5408<\/strong>\n<ul>\n<li>\u307e\u305anodejs.org\u304b\u3089Node.js\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002.<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u9045\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>\n<ul>\n<li>\u521d\u56de\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u901a\u5e38\u901a\u308a\u3002.<\/li>\n<\/ul>\n<\/li>\n<li><strong>zsh \u8b66\u544a<\/strong>\n<ul>\n<li>Homebrew\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u6307\u793a\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8d70\u308b <code>\u30d6\u30ea\u30e5\u30fc\u30fb\u30c9\u30af\u30bf\u30fc<\/code> \u3044\u3064\u3067\u3082\u5065\u5eb7\u8a3a\u65ad\u3092\u53d7\u3051\u3089\u308c\u308b\u3002.<\/p>\n<h3><strong>\u306a\u305cNVM\u3084\u4ed6\u306e\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u308f\u306a\u3044\u306e\u304b\uff1f<\/strong><\/h3>\n<p>\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u3001Homebrew\u306f\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u30671\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u3055\u3060\u3002.<\/p>\n<p>\u4e0a\u7d1a\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u308bNVM\uff08\u30ce\u30fc\u30c9\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30fb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\uff09\u3092\u597d\u3080\uff1a<\/p>\n<pre>\u30d0\u30c3\u30b7\u30e5\r\nnvm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/pre>\n<p>\u3057\u304b\u3057\u3001\u307e\u305a\u306fHomebrew\u304b\u3089\u59cb\u3081\u3001\u5fc5\u8981\u306a\u3089\u5f8c\u3067\u79fb\u884c\u3059\u308b\u3002.<\/p>\n<h3><strong>\u521d\u5fc3\u8005\u306e\u305f\u3081\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/strong><\/h3>\n<ol>\n<li><strong>LTS\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b<\/strong>:\u5b89\u5b9a\u3057\u3001\u3088\u308a\u9577\u304f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\uff08Node.js 24.x\u306f2026\u5e74\u306e\u73fe\u5728\u306eLTS\uff09\u3002.<\/li>\n<li><strong>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5c02\u7528\u30d1\u30c3\u30b1\u30fc\u30b8<\/strong>:npm init\u3068package.json\u3092\u4f7f\u3046\u3002.<\/li>\n<li><strong>\u57fa\u672c\u3092\u5b66\u3076<\/strong>:\n<ul>\n<li>npm init -y\uff1a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7c21\u5358\u306a\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3002.<\/li>\n<li>npm install express\uff1a\u4eba\u6c17\u306e\u30a6\u30a7\u30d6\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002.<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5b89\u5168<\/strong>:\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u7d9a\u3051\u308b-Node.js\u306f\u5b9a\u671f\u7684\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d1\u30c3\u30c1\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3044\u307e\u3059\u3002.<\/li>\n<li><strong>\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9<\/strong>:\u7c21\u5358\u306aExpress\u30b5\u30fc\u30d0\u30fc\u3084CLI\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002.<\/li>\n<li><strong>\u30ea\u30bd\u30fc\u30b9<\/strong>:\n<ul>\n<li>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8: nodejs.org<\/li>\n<li>\u30db\u30fc\u30e0\u30d6\u30ea\u30e5\u30fc\uff1a brew.sh<\/li>\n<li>\u7121\u6599\u30b3\u30fc\u30b9\uff1a freeCodeCamp\u3001YouTube\u306eNode.js\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3002.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2><strong>\u7d50\u8ad6<\/strong><\/h2>\n<p>\u3067Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b <code>\u30ce\u30fc\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/code> \u306f\u3001macOS\u306eJavaScript\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u53c2\u5165\u3059\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306e\u3072\u3068\u3064\u3060\u3002\u3044\u304f\u3064\u304b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u3001\u30c4\u30fc\u30eb\u3001\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u74b0\u5883\u304c\u6574\u3046\u3002.<\/p>\n<p>\u3042\u306a\u305f\u306f\u4eca\u6700\u65b0\u306eLTS\uff0824.x\uff09\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30e2\u30c0\u30f3\u306a\u958b\u767a\u306e\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u308b\u3002REPL\u30e2\u30fc\u30c9\uff08\u5bfe\u8a71\u578b\u30b7\u30a7\u30eb\uff09\u3067node\u3092\u5c0f\u3055\u304f\u8d77\u52d5\u3057\u3001JavaScript\u3092\u8a66\u3057\u3066\u307f\u3088\u3046\u3002. <strong>\u3067 <\/strong><a href=\"https:\/\/www.carmatec.com\/ja\/\"><strong>\u30ab\u30fc\u30de\u30c6\u30c3\u30af<\/strong><\/a>, Node.js\u306e\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u3067\u3042\u308b\u5f53\u793e\u306e\u958b\u767a\u8005\u306f\u3001\u3053\u308c\u3089\u306e\u57fa\u76e4\u3092\u30cf\u30a4\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3067\u30bb\u30ad\u30e5\u30a2\u304b\u3064\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u5909\u63db\u3059\u308b\u304a\u624b\u4f1d\u3044\u3092\u3057\u307e\u3059\u3002\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u3044\u305a\u308c\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u3067\u3082\u3001\u6b21\u306e\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 <a href=\"https:\/\/www.carmatec.com\/ja\/%e9%96%8b%e7%99%ba%e8%80%85%e3%82%92%e9%9b%87%e3%81%86\/nodejs%e9%96%8b%e7%99%ba%e8%80%85%e3%82%92%e9%9b%87%e3%81%86\/\"><strong>\u7d4c\u9a13\u8c4a\u5bcc\u306aNode.js\u958b\u767a\u8005\u3092\u63a1\u7528<\/strong><\/a><strong> \u30ab\u30eb\u30de\u30c6\u30c3\u30af\u3088\u308a<\/strong> \u958b\u767a\u3092\u52a0\u901f\u3055\u305b\u3001\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u78ba\u4fdd\u3057\u3001\u30d3\u30b8\u30cd\u30b9\u306b\u5bfe\u5fdc\u3057\u305f\u6210\u679c\u3092\u63d0\u4f9b\u3059\u308b\u3002.<\/p>","protected":false},"excerpt":{"rendered":"<p>Node.js has become the backbone of modern JavaScript development, powering everything from simple scripts to complex server-side applications. As of January 2026, the latest Long-Term Support (LTS) version is Node.js 24.x (with recent releases like 24.12.0), while the current experimental branch is around 25.x. For beginners, installing Node.js on macOS is straightforward, especially using Homebrew\u2014the [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":48497,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-48467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/48467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/comments?post=48467"}],"version-history":[{"count":0,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/48467\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media\/48497"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media?parent=48467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/categories?post=48467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/tags?post=48467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}