我目前正在使用安装了 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 并以这种方式安装它?