CentOS7 node.js 6.x 설치

(CentOS node.js 설치에서 넘어옴)
  다른 뜻에 대해서는 우분투 node.js 설치 문서를 참조하십시오.
CentOS node.js 설치
CentOS7 node.js 6.x 설치
CentOS7 npm 3.x 설치

1 확인[ | ]

root@centos7:~# rpm -qa | grep nodejs
root@centos7:~# node -v
-bash: node: command not found
root@centos7:~# npm -v
-bash: npm: command not found

2 epel 저장소 추가[ | ]

3 설치[ | ]

root@centos7:~# yum install nodejs
... (생략)
Dependencies Resolved

==========================================================================================================================
 Package                 Arch                    Version                                      Repository             Size
==========================================================================================================================
Installing:
 nodejs                  x86_64                  1:6.17.1-1.el7                               epel                  4.7 M
Installing for dependencies:
 libuv                   x86_64                  1:1.38.0-2.el7                               epel                  148 k
 npm                     x86_64                  1:3.10.10-1.6.17.1.1.el7                     epel                  2.5 M

Transaction Summary
==========================================================================================================================
Install  1 Package (+2 Dependent packages)

Total size: 7.4 M
Total download size: 7.2 M
Installed size: 27 M
Is this ok [y/d/N]: y
... (생략)
Installed:
  nodejs.x86_64 1:6.17.1-1.el7

Dependency Installed:
  libuv.x86_64 1:1.38.0-2.el7                             npm.x86_64 1:3.10.10-1.6.17.1.1.el7

Complete!

4 확인 2[ | ]

root@centos7:~# node -v
v6.17.1
root@centos7:~# npm -v
3.10.10

5 같이 보기[ | ]

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