nodejs on centos

本文详细介绍了如何在CentOS/RHEL/ScientificLinux6上通过EPEL仓库安装Node.js和npm的过程,包括启用EPEL、导入密钥、安装EPEL及最终安装Node.js和npm的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

RHEL/CentOS/Scientific Linux 6

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.

To check if you have EPEL, run

 yum repolist

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

First import the key:

 sudo rpm --import https://fedoraproject.org/static/0608B895.txt

Then install

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

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

 sudo yum install nodejs npm --enablerepo=epel

or if this doesn't work for you install node separately:

 sudo yum install npm --enablerepo=epel
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值