环境:
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. Angular(二)

    Angular开发者指南(二)概念概述   template(模板):带有附加标记的模板HTMLdirectives(指令):使用自定义属性和元素扩展HTMLmodel(模型):用户在视图中显示的数据 ...

  2. python_检测一些特定的服务端口有没有被占用

    一个python端口占用监测的程序,该程序可以监测指定IP的端口是否被占用. #!/usr/bin/env python# -*- coding:utf-8 -*- import socket, ti ...

  3. PAT甲级——1025 PAT Ranking

    1025 PAT Ranking Programming Ability Test (PAT) is organized by the College of Computer Science and ...

  4. mac vmware fusion10 nat 模式网络配置

    mac vmware fusion10 nat 模式网络配置 1.虚拟机选择 nat 模式 虚拟机-->网络适配器-->网络适配器设置-->连接网络适配器(对勾)-->与我的 ...

  5. xmemcached过期时间

    最近项目中使用到了Memcached,而客户端选择了XMemcached ,在设置过期时间时,因对Memcached 不熟悉,将expire 设置为1000000000,本意表示尽量长的时间不要过期, ...

  6. iOS涂色涂鸦效果、Swift仿喜马拉雅FM、抽屉转场动画、拖拽头像、标签选择器等源码

    iOS精选源码 LeeTagView 标签选择控件 为您的用户显示界面添加美观的加载视图 Swift4: 可拖动头像,增加物理属性 Swift版抽屉效果,自定义转场动画管理器 Swift 仿写喜马拉雅 ...

  7. [LC] 298. Binary Tree Longest Consecutive Sequence

    Given a binary tree, find the length of the longest consecutive sequence path. The path refers to an ...

  8. Tomcat远程调试模式及利用Eclipse远程链接调试

    1.启动tomcat到调试模式 进入到tomcat的bin目录下,执行命令./catalina.sh jpda run 启动日记会提示打开调试端口默认为8000 2.调试Eclipse远程连接tomc ...

  9. 转载【docker】CMD ENTRYPOINT 的使用方法

    原文:https://blog.csdn.net/u010900754/article/details/78526443

  10. 隐藏windows7/8“卸载或更改程序”里的软件

    隐藏windows7/8“卸载或更改程序”里的软件 通过修改注册表即可隐藏电脑中已安装的软件,这个方法会造成卸载列表无法加载已安装的软件,请谨慎操作!提示:删除注册表后windows自带的卸载程序.其 ...