centos yum npm 安装

Submitted by Lizhe on Fri, 12/29/2017 - 16:57

[root@vm2 ~]# sudo curl -sL -o /etc/yum.repos.d/khara-nodejs.repo https://copr.fedoraproject.org/coprs/khara/nodejs/repo/epel-7/khara-nodejs-epel-7.repo
[root@vm2 ~]# sudo yum install -y nodejs nodejs-npm