Cenots 7 通过Yum 安装Node.js 报错问题
环境:
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 报错问题的更多相关文章
- Windows安装Node.js报错:2503、2502的解决方法
以管理员身份用msiexec安装 1.以管理员身份运行cmd命令 (Win + X, A) 以管理员身份运行cmd 2.cd到自己msi路径 用msiexec安装 用msiexec安装nodejs
- win10 安装Node.js 报错:2503
解决方法: 使用管理员打开CMD
- centos7用yum安装node.js v8.x
1.更新node.js v8.x yum源 // 不更新,提示没有 packages文件 # curl --silent --location https://rpm.nodesource.com/s ...
- yum安装Development Tools报错问题
yum安装Development Tools报错问题 我们通过yum安装Development Tools开发组工具的时候,有时可能会遇到如下报错信息. [root@superdesktop ~]# ...
- yum安装node.js
1.安装EPEL库 yum install epel-release 2.安装Node.js yum install nodejs 3.安装nodejs中常用的npm软件包管理器 yum instal ...
- keepalived yum安装后启动报错解决
[root@centos8 ~]yum install keepalived -y [root@centos8 ~]systemctl start keepalived.services [root@ ...
- node.js报错:Cannot find module 'xxx'的解决办法
从别处拷贝一份node.js项目,如图 控制台启动 nodemon index.js 后报错:Cannot find module xxx.删除node_modules,在启动时仍提示Cannot f ...
- yum安装的时候报错,关于python的函数库
我在执行yum -y install nc命令的时候出现如下报错 There was a problem importing one of the Python modulesrequired to ...
- node.js报错总结
1. Error: EISDIR, read 这个报错是目标不应该是文件夹,而是其他类型,本错误出现在使用fs.createReadStream()里参数传递了个文件夹,但是应该传递个文件. 参考地址 ...
随机推荐
- gMIS吉密斯十年执念:Lower Costs较低成本Better Productivity较高效率
Hello 2020! 元旦快乐!今起揭开21世纪20年代的篇章. 1. gMIS吉密斯十周年 2010-2020,十年转眼已成历史,gMIS吉密斯——通用管理信息系统(general Managem ...
- C++ 传参的方式 值传递,指针传递,引用传递
关于传参总是搞晕,这里总结下: 值传递: void func(int n) { } void main() { int x = 1; func(x); return; } 这种就是值传递,在func函 ...
- 【网络流+贪心】Homework
题目描述 Taro is a student of Ibaraki College of Prominent Computing. In this semester, he takes two cou ...
- JDBC常用驱动和语法汇总
A. Firebird url=jdbc:firebirdsql:[HOST_NAME]/[PORT:][FULL_PATH_TO_DATABASE_FILE] driver=org.firebird ...
- html5 一些好用的原生事件
计算机技术发展这么多年, 有些方面太老了,不适合新时代的发展, 使用新的规范,更方便开发和使用, 提高各方使用人的工作效率, 何乐而不为 drag drop html5新增属性 某些操作使用拖拽比较方 ...
- day19-3个双下item方法
#使用双下item方法来实现属性的增删改查: # 查:__getitem__ 增改:__setitem__ 删除: __delitem__ class Goods: def __init__(self ...
- [LC] 429. N-ary Tree Level Order Traversal
Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serializ ...
- [LC] 692. Top K Frequent Words
Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted b ...
- 3)小案例三,加乐前端入口index.php
之前的代码没有什么改动,唯一改动的就是我在之前的目录结构中加了 index.php作为前端的入口文件 目前,我的文件目录关系是: 然后我的index.php代码内容是: <?php /** * ...
- easyui自学总结
1.可拖动 - Draggable 创建一个拖拽元素标记. <div id="dd" class="easyui-draggable" data-opti ...