{"id":41966,"date":"2024-08-23T11:22:42","date_gmt":"2024-08-23T11:22:42","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=41966"},"modified":"2026-02-17T10:33:30","modified_gmt":"2026-02-17T10:33:30","slug":"windows-macos-linux%e3%81%abnode-js%e3%81%a8npm%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%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.carmatec.com\/ja\/blog\/how-to-install-node-js-and-npm-on-windows-macos-linux\/","title":{"rendered":"Windows\u3001macOS\u3001Linux\u306bNode.js\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\uff082025\u30ac\u30a4\u30c9\uff09"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"41966\" class=\"elementor elementor-41966\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ee111f0 e-flex e-con-boxed e-con e-parent\" data-id=\"ee111f0\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5ffcd61 elementor-widget elementor-widget-text-editor\" data-id=\"5ffcd61\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h2><b>\u306f\u3058\u3081\u306b<\/b><\/h2><p>Node.js\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067JavaScript\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u5f37\u529b\u306aJavaScript\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002npm\uff08Node Package Manager\uff09\u306f\u3001Node.js\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u3042\u308a\u3001JavaScript\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u4f9d\u5b58\u95a2\u4fc2\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Windows\u3001macOS\u3001Linux \u306b Node.js \u3068 npm \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002.<\/p><h2><b>1.Windows\u306bNode.js\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/b><\/h2><p><b>\u30b9\u30c6\u30c3\u30d71\uff1aNode.js\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/b><\/p><ol><li aria-level=\"1\">\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/nodejs.org\/\">\u00a0Node.js\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>.<\/li><li aria-level=\"1\">LTS\uff08Long Term Support\uff09\u30d0\u30fc\u30b8\u30e7\u30f3\u306eWindows\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\uff08.msi\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002.<\/li><\/ol><p><b>\u30b9\u30c6\u30c3\u30d72\uff1aNode.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p><ol><li aria-level=\"1\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f.msi\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002.<\/li><li aria-level=\"1\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5f93\u3044\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306bnpm\u3092\u542b\u3081\u308b\u30dc\u30c3\u30af\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><li aria-level=\"1\">Next\uff08\u6b21\u3078\uff09\u300d\u3068\u300cInstall\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86\u3057\u307e\u3059\u3002.<\/li><\/ol><p><b>\u30b9\u30c6\u30c3\u30d7 3: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/b><\/p><ol><li aria-level=\"1\">\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304f\u3002.<\/li><li aria-level=\"1\">node -v\u3068\u5165\u529b\u3057\u3066\u3001Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><li aria-level=\"1\">npm -v \u3068\u5165\u529b\u3057\u3066 npm \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><\/ol><h2><b>2.macOS\u306bNode.js\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/b><\/h2><p><b>\u30b9\u30c6\u30c3\u30d71\uff1aHomebrew\u7d4c\u7531\u3067Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/b><\/p><ol><li aria-level=\"1\">\u30aa\u30fc\u30d7\u30f3\u30fb\u30bf\u30fc\u30df\u30ca\u30eb.<\/li><li aria-level=\"1\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/brew.sh\/\">\u00a0\u30db\u30fc\u30e0\u30d6\u30ea\u30e5\u30fc<\/a>\u00a0\u3082\u3057\u3001\u307e\u3060\u8d70\u3063\u3066\u3044\u306a\u3044\u306e\u306a\u3089\uff1a<br \/><pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre><\/li><li aria-level=\"1\">\u3067Node.js\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff1a<br \/><pre>\u30ce\u30fc\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/pre><\/li><\/ol><p><b>\u30b9\u30c6\u30c3\u30d7 2: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/b><\/p><ol><li aria-level=\"1\">\u30bf\u30fc\u30df\u30ca\u30eb\u3067node -v\u3068\u5165\u529b\u3057\u3001Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><li aria-level=\"1\">npm -v \u3068\u5165\u529b\u3057\u3066 npm \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><\/ol><p><b>\u5225\u306e\u65b9\u6cd5\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/b><\/p><ol><li aria-level=\"1\">\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/nodejs.org\/\">\u00a0Node.js\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>.<\/li><li aria-level=\"1\">macOS\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001.pkg\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3002.<\/li><li aria-level=\"1\">\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u4e86\u3057\u307e\u3059\u3002.<\/li><\/ol><h2><b>3.Linux\u306bNode.js\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/b><\/h2><p><b>\u30b9\u30c6\u30c3\u30d71: \u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u66f4\u65b0<\/b><\/p><ol><li aria-level=\"1\">\u30aa\u30fc\u30d7\u30f3\u30fb\u30bf\u30fc\u30df\u30ca\u30eb.<\/li><li aria-level=\"1\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30fb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u66f4\u65b0\u3059\u308b\uff1a<br \/>sudo apt update<\/li><\/ol><p><b>\u30b9\u30c6\u30c3\u30d72\uff1aNode.js\u3068npm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p><ul><li aria-level=\"1\"><b>Debian\/Ubuntu\u30d9\u30fc\u30b9\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408<\/b>:<br \/>sudo apt install nodejs npm<br \/><b><\/b><\/li><li aria-level=\"1\"><b>CentOS\/RHEL\u30d9\u30fc\u30b9\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408<\/b>:<br \/>sudo yum install nodejs npm<br \/><b><\/b><\/li><li aria-level=\"1\"><b>Fedora\u7528<\/b>:<br \/>sudo dnf install nodejs npm<\/li><\/ul><p><b>\u30b9\u30c6\u30c3\u30d7 3: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/b><\/p><ol><li aria-level=\"1\">\u30bf\u30fc\u30df\u30ca\u30eb\u3067node -v\u3068\u5165\u529b\u3057\u3001Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><li aria-level=\"1\">npm -v \u3068\u5165\u529b\u3057\u3066 npm \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002.<\/li><\/ol><h2><b>\u5225\u306e\u65b9\u6cd5\u30ce\u30fc\u30c9\u30d0\u30fc\u30b8\u30e7\u30f3\u30de\u30cd\u30fc\u30b8\u30e3(nvm)\u7d4c\u7531\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/h2><ol><li>nvm (Node Version Manager)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/><pre>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.2\/install.sh | bash<\/pre><\/li><li>NVM\u3092\u30ed\u30fc\u30c9\u3059\u308b\uff1a<br \/><pre>\u30bd\u30fc\u30b9 ~\/bashrc<\/pre><\/li><li>nvm\u3092\u4f7f\u3063\u3066Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff1a<br \/><pre>\u30ce\u30fc\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/pre><\/li><li><p>node -v \u3068 npm -v \u3092\u5165\u529b\u3057\u3066\u78ba\u8a8d\u3059\u308b\u3002.<\/p><\/li><\/ol><h2><b>\u7d50\u8ad6<\/b><\/h2><div class=\"elementor-element elementor-element-ba04ed5 elementor-widget elementor-widget-theme-post-content animated fadeInDown\" data-id=\"ba04ed5\" data-element_type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInDown&quot;}\" data-widget_type=\"theme-post-content.default\"><div class=\"elementor-widget-container\"><div class=\"elementor elementor-41966\" data-elementor-type=\"wp-post\" data-elementor-id=\"41966\" data-elementor-post-type=\"post\"><div class=\"elementor-element elementor-element-ee111f0 e-flex e-con-boxed e-con e-parent e-lazyloaded\" data-id=\"ee111f0\" data-element_type=\"container\"><div class=\"e-con-inner\"><div class=\"elementor-element elementor-element-5ffcd61 elementor-widget elementor-widget-text-editor\" data-id=\"5ffcd61\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\"><div class=\"elementor-widget-container\"><p>Node.js\u3068npm\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001Windows\u3067\u3082macOS\u3067\u3082Linux\u3067\u3082\u7c21\u5358\u3067\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u306b\u5f93\u3048\u3070\u3001Node.js \u3068 npm \u3092\u3059\u3050\u306b\u7acb\u3061\u4e0a\u3052\u3066\u5b9f\u884c\u3057\u3001\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u6e96\u5099\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3068\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/hire-developers\/hire-nodejs-developer\/\">Node.js<\/a>\u00a0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u4e16\u754c\u3092\u63a2\u691c\u3059\u308b\u6e96\u5099\u306f\u4e07\u7aef\u3060\u3002\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/hire-developers\/hire-javascript-developer\/\">JavaScript<\/a>\u00a0\u305d\u3057\u3066\u3001\u30d1\u30ef\u30d5\u30eb\u306a\u00a0<a href=\"https:\/\/web.archive.org\/web\/20250817095856\/https:\/\/www.carmatec.com\/web-application-development\/\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/a>.<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Introduction Node.js is a powerful JavaScript runtime environment that enables you to run JavaScript code on the server side. npm (Node Package Manager) is the default package manager for Node.js and is essential for managing JavaScript packages and dependencies. In this guide, we\u2019ll walk you through the steps to install Node.js and npm on Windows, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":41972,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-41966","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\/41966","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/comments?post=41966"}],"version-history":[{"count":160,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/41966\/revisions"}],"predecessor-version":[{"id":51039,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/41966\/revisions\/51039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media\/41972"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media?parent=41966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/categories?post=41966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/tags?post=41966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}