欢迎大家访问博主的博客新家:IT博客达人网 (http://www.blogdaren.com)[耶]

CentOS 6.5如何 yum 安装node.js以及npm?

manon 2018-3-15 11:30 Linux/Unix 抢沙发 145人打酱油 打开侧边栏| 关闭侧边栏

CentOS上可以自行下载*.tar.gz安装包通过编译的方式安装,也可采用EPEL方式安装:

Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux (EPEL) repository. If you haven't already done so, first enable EPEL.

1. To check if you have EPEL, run

yum repolist 

2. if you don't see epel, install it via RPM (At the time of this writing, the last version is 6.8)

rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 

3. And then run the following command to install node and npm:

yum install nodejs npm --enablerepo=epel 

4. if step 3 doesn't work for you install node separately:

yum install npm --enablerepo=epel
正文部分到此结束

版权声明:除非注明,本文由( manon )原创,转载请保留文章出处

本文链接:CentOS 6.5如何 yum 安装node.js以及npm?

继续浏览:木有标签

CentOS使用pv(Pipe Viewer)命令查看执行进度
PHP采集利器之phpQuery的用法详解

发表评论

看看右边的头像对不对?→_→