「CentOS8.3」nodejsをインストールする方法

2021年2月22日

1.nodejsパッケージの確認
# yum info nodejs

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
メタデータの期限切れの最終確認: 0:09:36 時間前の 20210222203320秒 に実施しました。
利用可能なパッケージ
名前 : nodejs
エポック : 1
バージョン : 10.21.0
リリース : 3.module_el8.2.0+391+8da3adc6
Arch : x86_64
サイズ : 8.9 M
ソース : nodejs-10.21.0-3.module_el8.2.0+391+8da3adc6.src.rpm
リポジトリー : appstream
概要 : JavaScript runtime
URL : http://nodejs.org/
ライセンス : MIT and ASL 2.0 and ISC and BSD
説明 : Node.js is a platform built on Chrome's JavaScript runtime
: for easily building fast, scalable network applications.
: Node.js uses an event-driven, non-blocking I/O model that
: makes it lightweight and efficient, perfect for data-intensive
: real-time applications that run across distributed devices.
メタデータの期限切れの最終確認: 0:09:36 時間前の 2021年02月22日 20時33分20秒 に実施しました。 利用可能なパッケージ 名前 : nodejs エポック : 1 バージョン : 10.21.0 リリース : 3.module_el8.2.0+391+8da3adc6 Arch : x86_64 サイズ : 8.9 M ソース : nodejs-10.21.0-3.module_el8.2.0+391+8da3adc6.src.rpm リポジトリー : appstream 概要 : JavaScript runtime URL : http://nodejs.org/ ライセンス : MIT and ASL 2.0 and ISC and BSD 説明 : Node.js is a platform built on Chrome's JavaScript runtime : for easily building fast, scalable network applications. : Node.js uses an event-driven, non-blocking I/O model that : makes it lightweight and efficient, perfect for data-intensive : real-time applications that run across distributed devices.
メタデータの期限切れの最終確認: 0:09:36 時間前の 2021年02月22日 20時33分20秒 に実施しました。
利用可能なパッケージ
名前         : nodejs
エポック     : 1
バージョン   : 10.21.0
リリース     : 3.module_el8.2.0+391+8da3adc6
Arch         : x86_64
サイズ       : 8.9 M
ソース       : nodejs-10.21.0-3.module_el8.2.0+391+8da3adc6.src.rpm
リポジトリー : appstream
概要         : JavaScript runtime
URL          : http://nodejs.org/
ライセンス   : MIT and ASL 2.0 and ISC and BSD
説明         : Node.js is a platform built on Chrome's JavaScript runtime
             : for easily building fast, scalable network applications.
             : Node.js uses an event-driven, non-blocking I/O model that
             : makes it lightweight and efficient, perfect for data-intensive
             : real-time applications that run across distributed devices.

2.nodejsのインストール
# yum install nodejs

インストール済み:
nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64
nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64
npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64

3.バージョンを確認
# node –version
v10.21.0
# npm –version
6.14.4

CentOS

Posted by arkgame