{"id":50167,"date":"2026-02-06T08:16:32","date_gmt":"2026-02-06T08:16:32","guid":{"rendered":"https:\/\/www.carmatec.com\/?p=50167"},"modified":"2026-02-06T08:16:32","modified_gmt":"2026-02-06T08:16:32","slug":"macos%e3%81%a8windows%e3%81%a8linux%e3%81%abnvm%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-nvm-on-macos-windows-and-linux\/","title":{"rendered":"macOS\u3001Windows\u3001Linux\u306bNVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"50167\" class=\"elementor elementor-50167\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-01f1794 e-flex e-con-boxed e-con e-parent\" data-id=\"01f1794\" 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-6c4e46e elementor-widget elementor-widget-text-editor\" data-id=\"6c4e46e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">Node Version Manager (NVM) \u306f\u3001Node.js \u3092\u4f7f\u7528\u3059\u308b\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u4e0d\u53ef\u6b20\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002Node.js\u306e\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u7ba1\u7406\u3001\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 <\/span><a href=\"https:\/\/nodejs.org\/en\"><span style=\"font-weight: 400;\">Node.js<\/span><\/a><span style=\"font-weight: 400;\"> \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u7570\u306a\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u9593\u3067\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u521d\u3081\u3066\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u521d\u5fc3\u8005\u3067\u3042\u3063\u3066\u3082\u3001\u8907\u6570\u306e Node.js \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6271\u3046\u7d4c\u9a13\u8c4a\u5bcc\u306a\u958b\u767a\u8005\u3067\u3042\u3063\u3066\u3082\u3001NVM \u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u7c21\u7d20\u5316\u3057\u3001\u751f\u7523\u6027\u3092\u9ad8\u3081\u307e\u3059\u3002.<\/span><\/p><p><span style=\"font-weight: 400;\">\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u4ee5\u4e0b\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u308b\u3002 <\/span><b>NVM\u3092macOS\u3001Windows\u3001Linux\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/b><span style=\"font-weight: 400;\">, \u4f7f\u3044\u65b9\u306e\u30d2\u30f3\u30c8\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30a2\u30c9\u30d0\u30a4\u30b9\u3001\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3068\u3082\u306b\u3002.<\/span><\/p><p><b>NVM\uff08\u30ce\u30fc\u30c9\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30fb\u30de\u30cd\u30fc\u30b8\u30e3\uff09\u306e\u7d39\u4ecb<\/b><\/p><p><span style=\"font-weight: 400;\">NVM\u304c\u7ba1\u7406\u3059\u308b <\/span><b>Node.js<\/b><span style=\"font-weight: 400;\"> \u5206\u96e2\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u56fa\u6709\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306f <\/span><span style=\"font-weight: 400;\"><code>.nvmrc<\/code><\/span><span style=\"font-weight: 400;\"> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u306a npm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092 Node \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b\u5206\u3051\u3066\u304a\u304f\u3002.<\/span><\/p><p><b>2026\u5e74\u306bNVM\uff08\u30ce\u30fc\u30c9\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30fb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\uff09\u3092\u4f7f\u3046\u7406\u7531<\/b><\/p><p><b>Node.js<\/b><span style=\"font-weight: 400;\"> \u4e88\u6e2c\u53ef\u80fd\u306a\u30ea\u30ea\u30fc\u30b9\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306b\u5f93\u3063\u3066\u3044\u308b\uff1a<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u5076\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u306f <\/span><b>LTS<\/b><span style=\"font-weight: 400;\"> (\u9577\u671f\u30b5\u30dd\u30fc\u30c8\uff09\u3002.<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u73fe\u5728 <\/span><b>LTS<\/b><span style=\"font-weight: 400;\"> \u30d0\u30fc\u30b8\u30e7\u30f3\uff082026\u5e742\u6708\uff09\uff1a<\/span><ul><li style=\"font-weight: 400;\" aria-level=\"2\"><b>\u30ce\u30fc\u30c924<\/b><span style=\"font-weight: 400;\"> (\u30af\u30ea\u30d7\u30c8\u30f3\uff09 - \u30a2\u30af\u30c6\u30a3\u30d6LTS\uff082025\u5e745\u6708\u958b\u59cb\u30012028\u5e744\u6708\u307e\u3067\u30b5\u30dd\u30fc\u30c8\uff09\u3002.<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"2\"><b>\u30ce\u30fc\u30c922<\/b><span style=\"font-weight: 400;\"> (Jod\uff09 - \u30e1\u30f3\u30c6\u30ca\u30f3\u30b9LTS\uff082026\u5e744\u6708\u307e\u3067\uff09\u3002.<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"2\"><b>\u30ce\u30fc\u30c9 20<\/b><span style=\"font-weight: 400;\"> (\u30a2\u30a4\u30a2\u30f3\uff09 - \u30e1\u30f3\u30c6\u30ca\u30f3\u30b9LTS\uff082026\u5e744\u6708\u307e\u3067\uff09\u3002.<\/span><\/li><\/ul><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><b>\u30ce\u30fc\u30c925<\/b><span style=\"font-weight: 400;\"> - \u73fe\u884c\uff08\u975eLTS\u30012026\u5e741\u6708\u6642\u70b9\u306e\u6700\u65b0\u6a5f\u80fd\uff09\u3002.<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">NVM\u306f\u3001\u30ec\u30ac\u30b7\u30fc\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4fdd\u5b88\u3001\u65b0\u6a5f\u80fd\u306e\u30c6\u30b9\u30c8\u3001\u30c1\u30fc\u30e0\u306e\u4e00\u8cab\u6027\u306e\u78ba\u4fdd\u3092\u652f\u63f4\u3057\u307e\u3059\u3002.<\/span><\/p><h4><b>NVM\u5b9f\u88c5\u306e\u6982\u8981<\/b><\/h4><table><tbody><tr><td><b>\u30d7\u30e9\u30c3\u30c8\u30db\u30fc\u30e0<\/b><\/td><td><b>\u30c4\u30fc\u30eb\u540d<\/b><\/td><td><b>\u30ea\u30dd\u30b8\u30c8\u30ea\u30ea\u30f3\u30af<\/b><\/td><td><b>\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\uff082026\u5e742\u6708\uff09<\/b><\/td><td><b>\u8a2d\u7f6e\u30bf\u30a4\u30d7<\/b><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">macOS \/ Linux \/ WSL<\/span><\/td><td><span style=\"font-weight: 400;\">nvm-sh\/nvm<\/span><\/td><td><span style=\"font-weight: 400;\">github.com\/nvm-sh\/nvm<\/span><\/td><td><span style=\"font-weight: 400;\">v0.40.4\uff082026\u5e741\u670829\u65e5\uff09<\/span><\/td><td><span style=\"font-weight: 400;\">\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">\u30cd\u30a4\u30c6\u30a3\u30d6\u30fb\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba<\/span><\/td><td><span style=\"font-weight: 400;\">\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba<\/span><\/td><td><span style=\"font-weight: 400;\">github.com\/coreybutler\/nvm-windows<\/span><\/td><td><span style=\"font-weight: 400;\">1.2.2\uff082024\u5e7412\u670831\u65e5\uff09<\/span><\/td><td><span style=\"font-weight: 400;\">.exe\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9<\/span><\/td><\/tr><\/tbody><\/table><p><span style=\"font-weight: 400;\">\u5185\u90e8\u3067nvm-sh\/nvm\u3092\u4f7f\u3046 <\/span><b>WSL<\/b><span style=\"font-weight: 400;\"> Windows\u4e0a\u3067Unix\u306e\u3088\u3046\u306a\u52d5\u4f5c\u3092\u3059\u308b\u3002.<\/span><\/p><h3><b>NVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306e\u524d\u63d0\u6761\u4ef6<\/b><\/h3><p><span style=\"font-weight: 400;\">NVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b\u3001\u4ee5\u4e0b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/span><\/p><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u30bf\u30fc\u30df\u30ca\u30eb\u307e\u305f\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u77e5\u8b58<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u7ba1\u7406\u8005\u6a29\u9650\u307e\u305f\u306fsudo\u6a29\u9650\uff08macOS\u304a\u3088\u3073Linux\u306e\u5834\u5408\uff09<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PowerShell\u307e\u305f\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\uff08Windows\u306e\u5834\u5408\uff09<\/span><\/li><\/ul><p><span style=\"font-weight: 400;\">\u65e2\u5b58\u306eNode.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066NVM\u3092\u5171\u5b58\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/span><\/p><h3><b>macOS\u306bNVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/b><\/h3><p><span style=\"font-weight: 400;\">macOS\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u6b21\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3057\u3066NVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002 <\/span><b>\u30ab\u30fc\u30eb<\/b><span style=\"font-weight: 400;\"> \u307e\u305f\u306f <\/span><b>\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8<\/b><span style=\"font-weight: 400;\">.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d71\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304f<\/b><\/h4><p><span style=\"font-weight: 400;\">\u30bf\u30fc\u30df\u30ca\u30eb\u306f <\/span><b>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u2192 \u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3 \u2192 \u30bf\u30fc\u30df\u30ca\u30eb<\/b><span style=\"font-weight: 400;\"> \u307e\u305f\u306fSpotlight\u691c\u7d22\u3092\u4f7f\u7528\u3059\u308b\u3002.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d7 2: curl\u3092\u4f7f\u3063\u305fNVM\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/h4><p><span style=\"font-weight: 400;\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\uff1a<\/span><\/p><pre><span style=\"font-weight: 400;\">curl -o\nhttps:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<\/span><\/pre><p><span style=\"font-weight: 400;\">\u3042\u308b\u3044\u306f\u3001wget\u3092\u4f7f\u3046\uff1a<\/span><\/p><pre><span style=\"font-weight: 400;\">wget -qO-\nhttps:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | \u30d0\u30c3\u30b7\u30e5<\/span><\/pre><h4><b>\u30b9\u30c6\u30c3\u30d73\uff1aNVM\u306e\u30ed\u30fc\u30c9<\/b><\/h4><p><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u518d\u8d77\u52d5\u3059\u308b\u304b\u3001\u5b9f\u884c\u3059\u308b\uff1a<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d7 4: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/b><\/h4><pre><span style=\"font-weight: 400;\">nvm --\u30d0\u30fc\u30b8\u30e7\u30f3<\/span><\/pre><p><span style=\"font-weight: 400;\">\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u3001NVM\u306fmacOS\u306b\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002.<\/span><\/p><h3><b>Linux\u306bNVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/b><\/h3><p><span style=\"font-weight: 400;\">Linux\u3078\u306eNVM\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306fmacOS\u3068\u4f3c\u3066\u304a\u308a\u3001Ubuntu\u3001Debian\u3001Fedora\u3001CentOS\u3092\u542b\u3080\u307b\u3068\u3093\u3069\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d71\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304f<\/b><\/h4><p><span style=\"font-weight: 400;\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3002.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d7 2: NVM\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/h4><p><span style=\"font-weight: 400;\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\uff1a<\/span><\/p><pre><span style=\"font-weight: 400;\">curl -o\nhttps:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<\/span><\/pre><h4><b>\u30b9\u30c6\u30c3\u30d73\uff1a\u30b7\u30a7\u30eb\u8a2d\u5b9a\u306e\u66f4\u65b0<\/b><\/h4><p><span style=\"font-weight: 400;\">\u30b7\u30a7\u30eb\u306e\u8a2d\u5b9a\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308b\uff1a<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d74\uff1a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/b><\/h4><pre><span style=\"font-weight: 400;\">nvm --\u30d0\u30fc\u30b8\u30e7\u30f3<\/span><\/pre><p><span style=\"font-weight: 400;\">\u3053\u308c\u3067NVM\u304cLinux\u30b7\u30b9\u30c6\u30e0\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3060\u3002.<\/span><\/p><h3><b>Windows\u306bNVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/b><\/h3><p><span style=\"font-weight: 400;\">Windows\u3067\u306f <\/span><b>\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba<\/b><span style=\"font-weight: 400;\">, \u3053\u308c\u306f\u540c\u69d8\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3002.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d71: NVM for Windows\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/b><\/h4><p><span style=\"font-weight: 400;\">nvm-windows\u306e\u516c\u5f0fGitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u6700\u65b0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d72\uff1a\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306e\u5b9f\u884c<\/b><\/h4><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3002 <\/span><span style=\"font-weight: 400;\"><code>.exe<\/code><\/span><span style=\"font-weight: 400;\"> \u30d5\u30a1\u30a4\u30eb<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30a6\u30a3\u30b6\u30fc\u30c9\u306b\u5f93\u3046<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068Node.js\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/span><\/li><\/ul><h4><b>\u30b9\u30c6\u30c3\u30d73\uff1a\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u305f\u306fPowerShell\u3092\u518d\u8d77\u52d5\u3059\u308b<\/b><\/h4><p><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u7aef\u672b\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002.<\/span><\/p><h4><b>\u30b9\u30c6\u30c3\u30d7 4: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d<\/b><\/h4><pre><span style=\"font-weight: 400;\">nvm\u30d0\u30fc\u30b8\u30e7\u30f3<\/span><\/pre><p><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bNVM\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002.<\/span><\/p><h3><b>NVM\u3092\u4f7f\u3063\u305fNode.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/h3><p><span style=\"font-weight: 400;\">NVM\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308c\u3070\u3001Node.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7c21\u5358\u3060\u3002.<\/span><\/p><h4><b>Node.js\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>\u30ce\u30fc\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/code><\/span><\/p><h4><b>\u7279\u5b9a\u306eNode.js\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>nvm install 18.20.0<\/code><\/span><\/p><h4><b>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30ea\u30b9\u30c8<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>nvm ls<\/code><\/span><\/p><h4><b>Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u308b<\/b><\/h4><p><span style=\"font-weight: 400;\"><code>nvm 18.20.0\u3092\u4f7f\u7528<\/code><\/span><\/p><p><span style=\"font-weight: 400;\">NVM\u306f\u3001Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306bnpm\u3092\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3057\u307e\u3059\u3002.<\/span><\/p><h3><b>\u30c7\u30d5\u30a9\u30eb\u30c8Node.js\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u8a2d\u5b9a<\/b><\/h3><p><span style=\"font-weight: 400;\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306eNode.js\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff1a<\/span><\/p><p><span style=\"font-weight: 400;\"><code>nvm alias default 18.20.0<\/code><\/span><\/p><p><span style=\"font-weight: 400;\">\u3053\u308c\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u30bf\u30fc\u30df\u30ca\u30eb\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u59cb\u307e\u308b\u305f\u3073\u306b\u3001\u9078\u629e\u3055\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002.<\/span><\/p><h3><b>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306eNVM\u306e\u4f7f\u7528<\/b><\/h3><p><span style=\"font-weight: 400;\">\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 <\/span><span style=\"font-weight: 400;\"><code>.nvmrc<\/code><\/span><span style=\"font-weight: 400;\"> \u30d5\u30a1\u30a4\u30eb\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8ffd\u52a0\u3059\u308b\uff1a<\/span><\/p><pre><span style=\"font-weight: 400;\">echo 18.20.0 &gt; .nvmrc\n<\/span><\/pre><p><span style=\"font-weight: 400;\">\u305d\u308c\u304b\u3089\u8d70\u308c\uff1a<\/span><\/p><p><span style=\"font-weight: 400;\"><code>nvm\u4f7f\u7528<\/code><\/span><\/p><p><span style=\"font-weight: 400;\">\u3053\u308c\u306b\u3088\u308a\u3001\u30c1\u30fc\u30e0\u3084\u74b0\u5883\u9593\u3067\u306e\u4e00\u8cab\u6027\u304c\u78ba\u4fdd\u3055\u308c\u308b\u3002.<\/span><\/p><h3><b>\u4e00\u822c\u7684\u306aNVM\u30b3\u30de\u30f3\u30c9\u306e\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8<\/b><\/h3><table><tbody><tr><td><b>\u30b3\u30de\u30f3\u30c9<\/b><\/td><td><b>\u8aac\u660e<\/b><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">\u30ce\u30fc\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/td><td><span style=\"font-weight: 400;\">\u6700\u65b0\u306eNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm install &lt;\u30d0\u30fc\u30b8\u30e7\u30f3<\/span><\/td><td><span style=\"font-weight: 400;\">\u7279\u5b9a\u306eNode.js\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm use &lt;\u30d0\u30fc\u30b8\u30e7\u30f3<\/span><\/td><td><span style=\"font-weight: 400;\">Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u308b<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm ls<\/span><\/td><td><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u4e00\u89a7<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm ls-remote<\/span><\/td><td><span style=\"font-weight: 400;\">\u5229\u7528\u53ef\u80fd\u306aNode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e00\u89a7\u8868\u793a<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400;\">nvm \u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb &lt;\u30d0\u30fc\u30b8\u30e7\u30f3<\/span><\/td><td><span style=\"font-weight: 400;\">Node.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u524a\u9664\u3059\u308b<\/span><\/td><\/tr><\/tbody><\/table><h3><b>\u4e00\u822c\u7684\u306aNVM\u306e\u554f\u984c\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/b><\/h3><h4><b>NVM\u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093<\/b><\/h4><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u30b7\u30a7\u30eb\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u30bd\u30fc\u30b9\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/span><\/li><li aria-level=\"1\"><span style=\"font-weight: 400;\">\u7aef\u672b\u3092\u518d\u8d77\u52d5\u3059\u308b<\/span><\/li><\/ul><h4><b>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc<\/b><\/h4><ul><li><span style=\"font-weight: 400;\">\u306e\u4f7f\u7528\u306f\u907f\u3051\u308b\u3002 <\/span><span style=\"font-weight: 400;\"><code>\u3059\u3069<\/code><\/span><span style=\"font-weight: 400;\"> NVM\u4ed8\u304d<\/span><span style=\"font-weight: 400;\"><br \/><\/span><\/li><li><span style=\"font-weight: 400;\">\u9069\u5207\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6240\u6709\u6a29\u306e\u78ba\u4fdd<\/span><\/li><\/ul><h4><b>Windows\u30d1\u30b9\u306e\u554f\u984c<\/b><\/h4><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u7af6\u5408\u3059\u308bNode.js\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3059\u308b<\/span><\/li><\/ul><h3><b>NVM\u4f7f\u7528\u6642\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/b><\/h3><ul><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u7528\u9014 <\/span><span style=\"font-weight: 400;\"><code>.nvmrc<\/code><\/span><span style=\"font-weight: 400;\"> \u30c1\u30fc\u30e0\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u3064\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u53ef\u80fd\u306a\u9650\u308a\u30b0\u30ed\u30fc\u30d0\u30eb\u306anpm\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u907f\u3051\u308b<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Node.js\u306eLTS\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u672c\u756a\u7528\u306b\u7dad\u6301\u3059\u308b<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">NVM\u306e\u5b9a\u671f\u7684\u306a\u66f4\u65b0<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u8907\u6570\u306eNode\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u307e\u305f\u304c\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8<\/span><\/li><\/ul><h3><b>NVM\u306f\u751f\u7523\u74b0\u5883\u306b\u9069\u3057\u3066\u3044\u308b\u304b\uff1f<\/b><\/h3><p><span style=\"font-weight: 400;\">NVM\u306f\u4e3b\u306b\u958b\u767a\u74b0\u5883\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u672c\u756a\u74b0\u5883\u3067\u306f\u3001Docker\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30ca\u5316\u30c4\u30fc\u30eb\u3084\u7ba1\u7406\u3055\u308c\u305fNode.js\u74b0\u5883\u304c\u4e00\u822c\u7684\u306b\u597d\u307e\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001NVM\u306f\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u3001\u30c6\u30b9\u30c8\u3001CI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u8cb4\u91cd\u306a\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u306b\u5909\u308f\u308a\u306f\u3042\u308a\u307e\u305b\u3093\u3002.<\/span><\/p><h2><b>\u7d50\u8ad6<\/b><\/h2><p><span style=\"font-weight: 400;\">macOS\u3001Windows\u3001Linux\u306bNVM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306f\u3001\u6700\u65b0\u306eNode.js\u958b\u767a\u306b\u3068\u3063\u3066\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u3067\u3059\u3002\u67d4\u8edf\u6027\u3092\u63d0\u4f9b\u3057\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u885d\u7a81\u3092\u306a\u304f\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5408\u7406\u5316\u3057\u307e\u3059\u3002NVM\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u306f\u74b0\u5883\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u3088\u308a\u3082\u3001\u5805\u7262\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306b\u96c6\u4e2d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002.<\/span><\/p><p><span style=\"font-weight: 400;\">\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u3067\u9ad8\u6027\u80fd\u306aNode.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u305f\u3044\u4f01\u696d\u5411\u3051\u3001, <\/span><a href=\"https:\/\/www.carmatec.com\/ja\/\"><b>\u30ab\u30fc\u30de\u30c6\u30c3\u30af<\/b><\/a><span style=\"font-weight: 400;\"> \u4fe1\u983c\u3067\u304d\u308b <\/span><a href=\"https:\/\/www.carmatec.com\/ja\/node-js-%e9%96%8b%e7%99%ba%e4%bc%9a%e7%a4%be\/\"><b>Node.js\u958b\u767a\u4f1a\u793e<\/b><\/a><span style=\"font-weight: 400;\">. .\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u30b0\u30ec\u30fc\u30c9\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u6df1\u3044\u5c02\u9580\u77e5\u8b58\u3092\u6301\u3064Carmatec\u306f\u3001\u5f37\u529b\u306aNode.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u8a08\u3001\u958b\u767a\u3001\u4fdd\u5b88\u3092\u652f\u63f4\u3057\u307e\u3059\u3002\u65e2\u5b58\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u8fd1\u4ee3\u5316\u3059\u308b\u5834\u5408\u3067\u3082 <\/span><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\/\"><b>Node.js\u958b\u767a\u8005\u3092\u96c7\u3046<\/b><\/a><span style=\"font-weight: 400;\"> \u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u305f\u3081\u306b\u3001Carmatec\u306f\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u3001\u5b89\u5168\u3067\u3001\u5c06\u6765\u306b\u5099\u3048\u305f\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002.<\/span><\/p>\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>Node Version Manager (NVM) is an essential tool for developers working with Node.js. It allows you to install, manage, and switch between multiple Node.js versions seamlessly across different projects. Whether you\u2019re a beginner setting up your first development environment or an experienced developer handling multiple Node.js applications, NVM simplifies version control and boosts productivity. In [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":50390,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-50167","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\/50167","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=50167"}],"version-history":[{"count":104,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/50167\/revisions"}],"predecessor-version":[{"id":50391,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/posts\/50167\/revisions\/50391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media\/50390"}],"wp:attachment":[{"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/media?parent=50167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/categories?post=50167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carmatec.com\/ja\/wp-json\/wp\/v2\/tags?post=50167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}