CentOS7 node.js 12.x 설치

1 개요[ | ]

CentOS7 node.js 12.x 설치
CentOS7 npm 6.x 설치
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
yum install -y nodejs
root@centos7:~# curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -

## Installing the NodeSource Node.js 12.x repo...
...
## Run `sudo yum install -y nodejs` to install Node.js 12.x and npm.
## 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
root@centos7:~# yum install -y nodejs
...
Dependencies Resolved

==========================================================================================================================
 Package                 Arch                    Version                                Repository                   Size
==========================================================================================================================
Installing:
 nodejs                  x86_64                  2:12.18.1-1nodesource                  nodesource                   22 M

Transaction Summary
==========================================================================================================================
Install  1 Package

Total download size: 22 M
Installed size: 68 M
...
Installed:
  nodejs.x86_64 2:12.18.1-1nodesource

Complete!
root@centos7:~# node -v
v12.18.1
root@centos7:~# npm -v
6.14.5

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}