LoginSignup
16
19

More than 3 years have passed since last update.

Node.js v12をyumでインストールしてみた。(CentOS 7)

Last updated at Posted at 2019-04-25

Node.js v12がリリース

node.js v12 (LTS予定)がリリースされました。
v8エンジンがアップグレードされたり、TLS1.3がサポートされたりと、色々変わっているようです。
詳しくは、リリースノート(英語)をみましょう。
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.0.0

Node.js v12 をインストール

取り敢えず、リポジトリを追加。

# yum install https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm

念のため、yum でnodejsのどのバージョンが対象になっているか確認。

# yum info nodejs

Installed Packages
Name        : nodejs
Arch        : x86_64
Epoch       : 2
Version     : 12.18.0 <-ココが重要
Release     : 1nodesource
Size        : 58 M
Repo        : installed
From repo   : nodesource
Summary     : JavaScript runtime
URL         : http://nodejs.org
License     : MIT and ASL 2.0 and ISC and BSD
Description : 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.

問題なさそうなので、インストールする。

# yum -y install nodejs

最後に、バージョンを確認しておしまい。

# node --version
v12.0.0

enjoy!

16
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
19