Bower依赖node, npm和git。

安装nodejs遇到

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

这是因为该包从EPEL中删除了,因为http-parser现在包含在RHEL 7.4中,而EPEL不提供在RHEL中的包。所以需要安装第三方http-parser软件包
 sudo 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

安装完第三方http-parser之后就可以正常安装nodejs(# sudo yum install nodejs),进而安装bower.



相关文章:

  • 2021-09-16
  • 2021-09-29
  • 2022-12-23
  • 2021-06-17
  • 2021-05-24
  • 2021-08-08
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案