小编ari*_*tav的帖子

CentOS box 上的 node.js 是 v0.6.18,yum 不会更新或升级它。为什么?

我目前正在使用安装了 node 版本的 CentOS 机器,当我这样做时:

nodejs -v
Run Code Online (Sandbox Code Playgroud)

我得到

v0.6.18
Run Code Online (Sandbox Code Playgroud)

但是我在 nodejs.org 网站上注意到,最新版本是 0.8.12,所以这样做:

sudo yum update nodejs
Run Code Online (Sandbox Code Playgroud)

我得到

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos-mirror.jchost.net
* epel: fedora-epel.mirror.lstn.net
* extras: centos.mirror.lstn.net
* updates: centos.mirror.lstn.net
Setting up Update Process
No Packages marked for Update
Run Code Online (Sandbox Code Playgroud)

这是怎么回事?为什么yum找不到最新版本的node?我是否必须从 nodejs.org 下载 .tar.gz 并以这种方式安装它?

centos node.js installation

6
推荐指数
1
解决办法
4666
查看次数

标签 统计

centos ×1

installation ×1

node.js ×1