centos 安装nodejs出现 annot retrieve metalink for repository: epel.

来源:互联网 发布:青岛海关数据 编辑:程序博客网 时间:2024/05/16 08:36
[root@centos node-v0.12.0-linux-x64]# yum install -y nodejs
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again



安装nodejs 准备安装一个博客,用hexo。顺便学习node的语法。


结果报错,解决办法:

 vim /etc/yum.repos.d/epel.repo


#baseurl
mirrorlist


改成


baseurl
#mirrorlist

即可。

另外终于发现了一个wordpress 自己写的 qq第三方登陆 。高手模版mark

http://www.netpc.com.cn/593.html


另外附上 centos 安装 node.js


Run as root on RHEL, CentOS or Fedora:

curl -sL https://rpm.nodesource.com/setup | bash -

Then install, as root:

yum install -y nodejs


0 0