http-parser was added to the Base repository for 7.4, therefore EPEL removed it.
This results in a gap in time where 7.4 has not yet been released, and the EPEL has a package with http-parser as a dependency which cannot be resolved.
http-parser packages can be downloaded here:
https://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/

 

Resolving Dependencies
–> Running transaction check
—> Package nodejs.x86_64 1:6.11.1-1.el7 will be installed
–> Processing Dependency: npm = 1:3.10.10-1.6.11.1.1.el7 for package: 1:nodejs-6.11.1-1.el7.x86_64
–> Processing Dependency: http-parser >= 2.7.0 for package: 1:nodejs-6.11.1-1.el7.x86_64
–> Processing Dependency: libhttp_parser.so.2()(64bit) for package: 1:nodejs-6.11.1-1.el7.x86_64
–> Running transaction check
—> Package nodejs.x86_64 1:6.11.1-1.el7 will be installed
–> Processing Dependency: http-parser >= 2.7.0 for package: 1:nodejs-6.11.1-1.el7.x86_64
–> Processing Dependency: libhttp_parser.so.2()(64bit) for package: 1:nodejs-6.11.1-1.el7.x86_64
—> Package npm.x86_64 1:3.10.10-1.6.11.1.1.el7 will be installed
–> Finished Dependency Resolution
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
You could try using –skip-broken to work around the problem
You could try running: -Va –nofiles –nodigest

Until CentOS 7.4 is released here’s a workaround:

As :

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 && -y nodejs

If you have  the same problem with the nodejs-devel package:

yum install nodejs-devel

Error: Package: 1:nodejs-devel-6.11.1-1.el7.x86_64 (epel)
Requires: http-parser-devel(x86-64)

 

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.rpmhttps://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/http-parser-devel-2.7.1-3.el7.x86_64.rpm && yum -y install nodejs-devel

Print Friendly, PDF & Email

Comments

comments

Bài viết liên quan