{"id":193,"date":"2023-11-08T01:29:53","date_gmt":"2022-11-19T09:15:50","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T21:32:20","modified_gmt":"2025-07-31T12:32:20","slug":"rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/","title":{"rendered":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u65e5\u672c\u8a9e\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u6587\u7ae0\u3092\u81ea\u7136\u306a\u8a00\u3044\u65b9\u3067\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/h3>\n<p>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/p>\n<p>Node.js\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u305f\u3081\u306eJavaScript\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3059\u3002\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u65e2\u306b\u30d6\u30e9\u30a6\u30b6\u30d9\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u958b\u767a\u3067\u4f7f\u3044\u6163\u308c\u3066\u3044\u308bJavaScript\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Rocky Linux 9 \u30b5\u30fc\u30d0\u30fc\u306b Node.js \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u30923\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>using dnf to install the nodejs package from Rocky\u2019s default software repository<\/li>\n<li>using dnf with the Nodesource software repository to install specific versions of the nodejs package<\/li>\n<li>installing nvm, the Node Version Manager, and using it to install and manage multiple versions of Node.js<\/li>\n<\/ul>\n<p>\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u305fdnf\u306f\u5341\u5206\u3067\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u3082\u3057\u7279\u5b9a\u306e\u65b0\u3057\u3044\uff08\u307e\u305f\u306f\u53e4\u3044\uff09Node\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001Nodesource\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3079\u304d\u3067\u3059\u3002\u3082\u3057Node\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7a4d\u6975\u7684\u306b\u958b\u767a\u3057\u3001\u983b\u7e41\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001nvm\u306e\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Rocky Linux 9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u59cb\u3081\u308b\u524d\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067sudo\u7279\u6a29\u3092\u6301\u3063\u305f\u975e\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Rocky Linux 9\u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u3066\u3001\u3053\u308c\u3092\u884c\u3046\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30aa\u30d7\u30b7\u30e7\u30f31\uff1a\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089DNF\u3092\u4f7f\u7528\u3057\u3066Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>\u30ed\u30c3\u30ad\u30fc\u30ea\u30ca\u30c3\u30af\u30b99\u306b\u306f\u3001\u8907\u6570\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u4e00\u8cab\u3057\u305f\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308bNode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u8a18\u8ff0\u6642\u70b9\u3067\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f16.14.0\u3067\u3059\u3002\u3053\u308c\u306f\u6700\u65b0\u7248\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5b89\u5b9a\u3057\u3066\u304a\u308a\u3001\u8a00\u8a9e\u306e\u8fc5\u901f\u306a\u5b9f\u9a13\u306b\u5341\u5206\u306a\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u306f\u3001dnf\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> dnf <span class=\"token function\">install<\/span> nodejs <span class=\"token parameter variable\">-y<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30ce\u30fc\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u53d6\u5f97\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6210\u529f\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">node<\/span> <span class=\"token parameter variable\">-v<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>v16.14.0<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306a\u3082\u306e\u3067\u3042\u308c\u3070\u3001Node.js \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u5fc5\u8981\u306a\u624b\u7d9a\u304d\u306f\u3053\u308c\u3060\u3051\u3067\u3059\u3002Rocky \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u53d6\u5f97\u3067\u304d\u308b Node.js \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u3001Node.js \u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u3042\u308b npm \u3082\u540c\u68b1\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Node.js \u3067\u4f7f\u7528\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001dnf\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u306eRocky\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001Node.js\u3068npm\u3092\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5225\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306eNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30aa\u30d7\u30b7\u30e7\u30f32 &#8211; NodeSource\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066DNF\u3067Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Node.js\u306e\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001NodeSource\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002NodeSource\u306f\u3001\u516c\u5f0f\u306eRocky\u30ea\u30dd\u30b8\u30c8\u30ea\u3088\u308a\u3082\u591a\u304f\u306eNode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5229\u7528\u3067\u304d\u308b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3059\u3002\u57f7\u7b46\u6642\u70b9\u3067\u306f\u3001Node.js\u306ev14\u3001v16\u3001v18\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u5f97\u308b\u305f\u3081\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u3001\u304a\u597d\u307f\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092curl\u3092\u4f7f\u7528\u3057\u3066\u53d6\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3060\u3057\u300118.x\u306e\u90e8\u5206\u306f\u304a\u597d\u307f\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u6587\u5b57\u5217\u306b\u7f6e\u304d\u63db\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> ~<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-sL<\/span> https:\/\/rpm.nodesource.com\/setup_<mark>18.x<\/mark> <span class=\"token parameter variable\">-o<\/span> nodesource_setup.sh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5229\u7528\u53ef\u80fd\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001NodeSource\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\uff08\u4f8b\uff1avi\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">vi<\/span> nodesource_setup.sh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u5e38\u306b\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u306f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u5834\u5408\u3001NodeSource\u306f\u72ec\u81ea\u306e\u30ed\u30b8\u30c3\u30af\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u8981\u4ef6\u306b\u57fa\u3065\u3044\u3066\u6b63\u3057\u3044\u30b3\u30de\u30f3\u30c9\u304c\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u306b\u6e21\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b89\u5168\u306b\u5b9f\u884c\u3067\u304d\u308b\u3068\u78ba\u4fe1\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30a8\u30c7\u30a3\u30bf\u3092\u7d42\u4e86\u3057\u3001\u6b21\u306bsudo\u3092\u4f7f\u3063\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">bash<\/span> nodesource_setup.sh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u2026 ## Your system appears to already have Node.js installed from an alternative source. Run `sudo yum remove -y nodejs npm` to remove these first. ## Run `sudo yum install -y nodejs` to install Node.js 18.x and npm. ## You may run dnf if yum is not available: sudo dnf install -y nodejs ## You may also need development tools to build native addons: sudo yum install gcc-c++ make ## To install the Yarn package manager, run: curl -sL https:\/\/dl.yarnpkg.com\/rpm\/yarn.repo | sudo tee \/etc\/yum.repos.d\/yarn.repo sudo yum install yarn<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3055\u308c\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002Node.js\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3068\u540c\u3058\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b\u3001\u53e4\u3044Node.js\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5b8c\u5168\u306b\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002sudo dnf remove nodejs npm\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u8a2d\u5b9a\u306f\u307e\u3063\u305f\u304f\u5f71\u97ff\u3092\u53d7\u3051\u307e\u305b\u3093\u304c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u307f\u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u5e38\u306b\u30b9\u30c8\u30c3\u30af\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30c0\u30a4\u30ec\u30af\u30c8\u306a\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u5e38\u306b\u30af\u30ea\u30fc\u30f3\u30b9\u30ec\u30fc\u30c8\u306b\u623b\u3059\u3053\u3068\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> dnf remove nodejs <span class=\"token function\">npm<\/span> <span class=\"token parameter variable\">-y<\/span><\/li>\n<li data-prefix=\"$\"><\/li>\n<li data-prefix=\"$\">&#8220;`command<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> dnf <span class=\"token function\">install<\/span> nodejs <span class=\"token parameter variable\">-y<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001node\u3092-v\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d5\u30e9\u30b0\u3068\u3068\u3082\u306b\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">node<\/span> <span class=\"token parameter variable\">-v<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p><mark>v18.9.0<\/mark><\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>NodeSource\u306enodejs\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u3001node\u30d0\u30a4\u30ca\u30ea\u3068npm\u306e\u4e21\u65b9\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u5225\u9014npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001Node.js\u3068npm\u3092dnf\u3068NodeSource\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Node Version Manager\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u306eNode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30aa\u30d7\u30b7\u30e7\u30f33 &#8211; Node Version Manager\u3092\u4f7f\u7528\u3057\u3066Node\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n<p>Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u7279\u306b\u67d4\u8edf\u306a\u65b9\u6cd5\u306e\u3082\u3046\u3072\u3068\u3064\u306f\u3001Node Version Manager\uff08NVM\uff09\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f7f\u3046\u3068\u3001\u7570\u306a\u308b\u591a\u304f\u306e\u72ec\u7acb\u3057\u305fNode.js\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>Rocky Linux 9 \u30de\u30b7\u30f3\u306b NVM \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e GitHub \u30da\u30fc\u30b8\u3092\u8a2a\u308c\u3066\u304f\u3060\u3055\u3044\u3002\u30e1\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u8868\u793a\u3055\u308c\u308b README \u30d5\u30a1\u30a4\u30eb\u304b\u3089 curl \u30b3\u30de\u30f3\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6700\u65b0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Bash\u3078\u30b3\u30de\u30f3\u30c9\u3092\u30d1\u30a4\u30d7\u3059\u308b\u524d\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u76e3\u67fb\u3057\u3066\u5fc5\u305a\u540c\u610f\u3059\u308b\u5185\u5bb9\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u826f\u3044\u30a2\u30a4\u30c7\u30a2\u3067\u3059\u3002\u305d\u308c\u306f\u3001curl\u30b3\u30de\u30f3\u30c9\u306e\u6700\u5f8c\u306e| bash\u30bb\u30b0\u30e1\u30f3\u30c8\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">curl<\/span> -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.1\/install.sh<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5909\u66f4\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u5feb\u9069\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6e80\u8db3\u3057\u305f\u3089\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6700\u5f8c\u306b| bash\u3092\u8ffd\u52a0\u3057\u3066\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f7f\u7528\u3059\u308bURL\u306f\u3001nvm\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u304c\u3001\u73fe\u6642\u70b9\u3067\u306f\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">curl<\/span> -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.1\/install.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">bash<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u901a\u308a\u3001\u65e5\u672c\u8a9e\u3067\u306e\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u63d0\u4f9b\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>\u300c\u3053\u306e\u624b\u9806\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001nvm\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u4f7f\u7528\u3059\u308b\u524d\u306b\u3001\u307e\u305a.bashrc\u30d5\u30a1\u30a4\u30eb\u3092\u30bd\u30fc\u30b9\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001NVM\u306b\u5229\u7528\u53ef\u80fd\u306aNode\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5c0b\u306d\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">nvm list-remote<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>. . . v16.13.1 (LTS: Gallium) v16.13.2 (LTS: Gallium) v16.14.0 (LTS: Gallium) v16.14.1 (LTS: Gallium) v16.14.2 (LTS: Gallium) v16.15.0 (LTS: Gallium) v16.15.1 (LTS: Gallium) v16.16.0 (LTS: Gallium) v16.17.0 (Latest LTS: Gallium) v17.0.0 v17.0.1 v17.1.0 v17.2.0 \u2026<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3068\u3066\u3082\u9577\u3044\u30ea\u30b9\u30c8\u3067\u3059\uff01\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30ea\u30ea\u30fc\u30b9\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u3044\u305a\u308c\u304b\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001Node\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001LTS\u30ea\u30ea\u30fc\u30b9\u306ev16.16.0\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3067\u304d\u307e\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">nvm <span class=\"token function\">install<\/span> v16.16.0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code>nvm list\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>-&gt; v16.16.0 system default -&gt; v16.16.0 iojs -&gt; N\/A (default) unstable -&gt; N\/A (default) node -&gt; stable (-&gt; v16.16.0) (default) stable -&gt; 16.16 (-&gt; v16.16.0) (default) lts\/* -&gt; lts\/gallium (-&gt; N\/A) lts\/argon -&gt; v4.9.1 (-&gt; N\/A) lts\/boron -&gt; v6.17.1 (-&gt; N\/A) lts\/carbon -&gt; v8.17.0 (-&gt; N\/A) lts\/dubnium -&gt; v10.24.1 (-&gt; N\/A) lts\/erbium -&gt; v12.22.12 (-&gt; N\/A) lts\/fermium -&gt; v14.20.0 (-&gt; N\/A) lts\/gallium -&gt; v16.17.0 (-&gt; N\/A)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u884c\u306b\u306f\u3001\u73fe\u5728\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\uff08v16.16.0\uff09\u304c\u8868\u793a\u3055\u308c\u3001\u305d\u306e\u5f8c\u3001\u3044\u304f\u3064\u304b\u306e\u5225\u540d\u3068\u3001\u305d\u308c\u3089\u306e\u5225\u540d\u304c\u6307\u3059\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u3082\u3057dnf\u3092\u901a\u3058\u3066Node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u3053\u306b\u30b7\u30b9\u30c6\u30e0\u306e\u30a8\u30f3\u30c8\u30ea\u304c\u8868\u793a\u3055\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3044\u3064\u3067\u3082system-installed\u30d0\u30fc\u30b8\u30e7\u30f3\u306eNode\u3092nvm use system\u3067\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3053\u308c\u3089\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u57fa\u3065\u3044\u3066\u30ea\u30ea\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30d5\u30a7\u30eb\u30df\u30a6\u30e0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">nvm <span class=\"token function\">install<\/span> lts\/gallium<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Downloading and installing node v16.17.0&#8230; Downloading https:\/\/nodejs.org\/dist\/v16.17.0\/node-v16.17.0-linux-x64.tar.xz&#8230; ################################################################################# 100.0% Computing checksum with sha256sum Checksums matched! Now using node v16.17.0 (npm v8.15.0)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u540c\u3058\u624b\u6cd5\u3092\u4f7f\u3063\u3066\u3001\u30bf\u30a4\u30d7\u3059\u308b\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6210\u529f\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">node<\/span> <span class=\"token parameter variable\">-v<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>v16.17.0<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5f0a\u793e\u306e\u30de\u30b7\u30f3\u306b\u306f\u3001\u4e88\u60f3\u901a\u308a\u6b63\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eNode\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u4e92\u63db\u6027\u306e\u3042\u308bnpm\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>Rocky Linux\u30b5\u30fc\u30d0\u30fc\u3067Node.js\u3092\u59cb\u3081\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u4e0a\u8a18\u306e\u65b9\u6cd5\u306e\u3069\u308c\u304c\u6700\u9069\u304b\u306f\u3001\u3042\u306a\u305f\u306e\u72b6\u6cc1\u306b\u3088\u308a\u307e\u3059\u3002Rocky\u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u7248\u3092\u4f7f\u3046\u3053\u3068\u306f\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u3067\u3059\u304c\u3001nvm\u3084NodeSource\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3046\u3053\u3068\u3067\u8ffd\u52a0\u306e\u67d4\u8edf\u6027\u3082\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>Node.js\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u95a2\u3059\u308b\u8a73\u7d30\u60c5\u5831\u306f\u3001\u5f53\u793e\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30b7\u30ea\u30fc\u30ba\u300cNode.js\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u65b9\u6cd5\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u672c\u8a9e\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u6587\u7ae0\u3092\u81ea\u7136\u306a\u8a00\u3044\u65b9\u3067\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 Node.js\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u305f\u3081\u306eJavaScript\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3059\u3002\u591a\u304f\u306e [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,71,17],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-node-js","tag-17"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bnode-js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bnode-js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-19T09:15:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:32:20+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"16\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/\",\"name\":\"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-11-19T09:15:50+00:00\",\"dateModified\":\"2025-07-31T12:32:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bnode-js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5","og_description":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u306bnode-js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-19T09:15:50+00:00","article_modified_time":"2025-07-31T12:32:20+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"16\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/","name":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-11-19T09:15:50+00:00","dateModified":"2025-07-31T12:32:20+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Rocky Linux 9\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%abnode-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%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":325739,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions\/325739"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}