CentOS 7 升级node.js提示Requires:http-parser >= 2.7.0错误

以前在去年安装node.js时,yum install直接就搞定。此次虚拟机过久未登录,因而登录'yum update'遇到了以下错误:node

Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: libhttp_parser.so.2()(64bit)
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
           Requires: http-parser >= 2.7.0

查了下,是由于CentOS 的EPEL里已经移除了Node.js而放在了REHL中。 所以须要去下载http-parser安装便可.shell

rpm -ivh https://kojipkgs.fedoraproject.org/packages/http-parser/2.7.1/3.el7/x86_64/http-parser-2.7.1-3.el7.x86_64.rpm
相关文章
相关标签/搜索