1 개요[ | ]
- CentOS7 node.js 12.x 설치
- CentOS7 npm 6.x 설치
Bash
Copy
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
yum install -y nodejs
Console
Copy
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
Console
Copy
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!
Console
Copy
root@centos7:~# node -v
v12.18.1
root@centos7:~# npm -v
6.14.5
2 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- CentOS 7 (2)
- Yum install (2)
CentOS7 MariaDB 설치 ― 전귀현CentOS7 MariaDB 설치 ― Jmnote