Mark-20170817-Centos 7 上 Nodejs 安装问题
来源:互联网 发布:windows10 mac地址 编辑:程序博客网 时间:2024/06/05 07:06
之前安装 nodejs,都是直接
yum install epel-release; yum install nodejs;
就可以直接成功安装了,但是这次 Centos 7 的版本似乎对这玩意儿的兼容性不太好。
Problem
[root@nodejs ~]# yum install nodejsLoaded plugins: fastestmirrorRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository centosplus is listed more than once in the configurationLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * epel: ftp.cuhk.edu.hk * extras: mirrors.btte.net * updates: mirrors.btte.netResolving 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: libuv >= 1:1.9.1 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: libuv.so.1()(64bit) for package: 1:nodejs-6.11.1-1.el7.x86_64--> Processing Dependency: libicuuc.so.50()(64bit) for package: 1:nodejs-6.11.1-1.el7.x86_64--> Processing Dependency: libicui18n.so.50()(64bit) for package: 1:nodejs-6.11.1-1.el7.x86_64--> Processing Dependency: libicudata.so.50()(64bit) 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 libicu.x86_64 0:50.1.2-15.el7 will be installed---> Package libuv.x86_64 1:1.10.2-1.el7 will be installed---> 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 ResolutionError: 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: rpm -Va --nofiles --nodigest
Solution
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 && yum -y install nodejs
0013669: can’t install nodejs on centos7
More
[root@nodejs ~]# cat /etc/redhat-releaseCentOS Linux release 7.3.1611 (Core)
CentOS 7查看系统版本及查看机器位数x86-64
阅读全文
0 0
- Mark-20170817-Centos 7 上 Nodejs 安装问题
- centos上安装nodejs
- 在centos上安装nodejs
- centos 7 nodejs安装
- centos 7 安装nodejs
- 如何在CentOS 7服务器上安装NodeJS
- 在CentOS 6.5上安装NodeJS
- 在CentOS 6.5上安装NodeJS
- 在centOS上安装nodejs记录
- nodejs 在centos上安装笔记
- CentOS 7二进制文件安装nodejs
- centOS 7安装nodejs npm
- 在Centos和Windows上安装NodeJS和Npm
- Centos上安装nginx+nodejs+express+mongodb环境.
- Centos上安装nginx+nodejs+express+mongodb环境.
- centos上安装nodejs和npm的步骤详解
- Centos 7 安装 nodejs(v6.10.2)
- centos 安装nodejs
- Hdu1161-敌兵布阵-【树状数组】
- 书《程序员之禅》简单介绍
- python初级进阶篇
- Mac下用python操作剪切板
- 计算机网络
- Mark-20170817-Centos 7 上 Nodejs 安装问题
- 简单Web应用例子 参考Head First servlet jsp
- C 语言基础 1
- CSS实战
- 象棋人机对战
- use api in pygal
- 刷CCF的算法题(第二天)
- 字符串问题---判断两个字符串是否互为旋转词
- Python-三种括号的区别