环境:
CentOS Linux release 7.3.1611 (Core)

安装报错信息:

[cenots7@localhost ~]$ sudo yum -y install npm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* remi-safe: mirror.innosol.asia
Resolving Dependencies
--> Running transaction check
---> Package npm.x86_64 :3.10.-1.6.11.1..el7 will be installed
--> Processing Dependency: nodejs = :6.11.-.el7 for package: :npm-3.10.-1.6.11.1..el7.x86_64
--> Running transaction check
---> Package nodejs.x86_64 :6.11.-.el7 will be installed
--> Processing Dependency: libuv >= :1.9. for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: http-parser >= 2.7. for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: libuv.so.()(64bit) for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: libicuuc.so.()(64bit) for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: libicui18n.so.()(64bit) for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: libicudata.so.()(64bit) for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: libhttp_parser.so.()(64bit) for package: :nodejs-6.11.-.el7.x86_64
--> Running transaction check
---> Package libicu.x86_64 :50.1.-.el7 will be installed
---> Package libuv.x86_64 :1.10.-.el7 will be installed
---> Package nodejs.x86_64 :6.11.-.el7 will be installed
--> Processing Dependency: http-parser >= 2.7. for package: :nodejs-6.11.-.el7.x86_64
--> Processing Dependency: libhttp_parser.so.()(64bit) for package: :nodejs-6.11.-.el7.x86_64
--> Finished Dependency Resolution
Error: Package: :nodejs-6.11.-.el7.x86_64 (epel)
Requires: libhttp_parser.so.()(64bit)
Error: Package: :nodejs-6.11.-.el7.x86_64 (epel)
Requires: http-parser >= 2.7.
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

解决方法:

需要安装:http-parser 插件

[centos@localhost ~]$ sudo wget https://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/http-parser-2.7.1-3.el7.x86_64.rpm
[centos@localhost ~]$ sudo wget https://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/http-parser-devel-2.7.1-3.el7.x86_64.rpm
[centos@localhost ~]$ sudo yum -y localinstall http-parser-*
[centos@localhost ~]$ sudo yum -y install nodejs npm nodejs-devel
[centos@localhost ~]$ sudo rm -rf http-parser-*

Cenots 7 通过Yum 安装Node.js 报错问题的更多相关文章

  1. Windows安装Node.js报错:2503、2502的解决方法

    以管理员身份用msiexec安装 1.以管理员身份运行cmd命令 (Win + X, A) 以管理员身份运行cmd 2.cd到自己msi路径  用msiexec安装 用msiexec安装nodejs

  2. win10 安装Node.js 报错:2503

    解决方法: 使用管理员打开CMD

  3. centos7用yum安装node.js v8.x

    1.更新node.js v8.x yum源 // 不更新,提示没有 packages文件 # curl --silent --location https://rpm.nodesource.com/s ...

  4. yum安装Development Tools报错问题

    yum安装Development Tools报错问题 我们通过yum安装Development Tools开发组工具的时候,有时可能会遇到如下报错信息. [root@superdesktop ~]# ...

  5. yum安装node.js

    1.安装EPEL库 yum install epel-release 2.安装Node.js yum install nodejs 3.安装nodejs中常用的npm软件包管理器 yum instal ...

  6. keepalived yum安装后启动报错解决

    [root@centos8 ~]yum install keepalived -y [root@centos8 ~]systemctl start keepalived.services [root@ ...

  7. node.js报错:Cannot find module 'xxx'的解决办法

    从别处拷贝一份node.js项目,如图 控制台启动 nodemon index.js 后报错:Cannot find module xxx.删除node_modules,在启动时仍提示Cannot f ...

  8. yum安装的时候报错,关于python的函数库

    我在执行yum -y install nc命令的时候出现如下报错 There was a problem importing one of the Python modulesrequired to ...

  9. node.js报错总结

    1. Error: EISDIR, read 这个报错是目标不应该是文件夹,而是其他类型,本错误出现在使用fs.createReadStream()里参数传递了个文件夹,但是应该传递个文件. 参考地址 ...

随机推荐

  1. pytorch函数之nn.Linear

    class torch.nn.Linear(in_features,out_features,bias = True )[来源] 对传入数据应用线性变换:y = A x+ b 参数: in_featu ...

  2. Tript协议|伯尔尼公约|著作权|立法宗旨|自动保护|著作权集体管理|

    知识产权 国际条约: Tript协议是国际性公约,<与贸易有关的知识产权协定>(英文:Agreement on Trade-Related Aspects of Intellectual ...

  3. spring-mvc基于注解的配置

    将配置文件修改为: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="htt ...

  4. ccpc20190823

    04 http://acm.hdu.edu.cn/showproblem.php?pid=6705 分析:先把每条边以 形式放进堆,堆按路径权值从小到大排序,然后每次取出堆顶,用v的出边扩展 新的路径 ...

  5. 关于RFC

    版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/byxdaz/article/details/557902关于RFC(Request For Comm ...

  6. CF-551:部分题目总结

    题目链接:http://codeforces.com/contest/1153 A .Serval and Bus pro:给出n种公交车的首班车时间和两班车之间的时间间隔,找t时间以后的第一辆车是第 ...

  7. mysqli存储过程

    <?php$link = mysqli_connect('localhost','root','','chinatupai');  $sql = "call getEmail('000 ...

  8. [LC] 221. Maximal Square

    Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and re ...

  9. [LC] 62. Unique Paths

    A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The ...

  10. 升级mongodb数据库2.6.6到3.0.3,切换引擎,主从同步数据

    只升级mongodb的版本极为简单,更新/替换 bin/目录下的可执行文件即可. debian和osx上的升级,按步骤来,没什么好说的. http://docs.mongodb.org/manual/ ...