繁体   English   中英

为什么我在 centos 上安装 nodejs 时出现此错误

[英]Why am i getting this error nodejs install on centos

我有 Centos 7.9 服务器,我正在尝试安装 nodejs。

curl --silent --location https://rpm.nodesource.com/setup_18.x | sudo bash -

存储库在文件 /etc/yum.repos.d/nodesource-el7.repo 中配置

之后,当键入 sudo yum install nodejs 时,它返回:

Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:18.13.0-1nodesource will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.28)(64bit) for package: 2:nodejs-18.13.0-1nodesource.x86_64
--> Processing Dependency: libm.so.6(GLIBC_2.27)(64bit) for package: 2:nodejs-18.13.0-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-18.13.0-1nodesource.x86_64 (nodesource)
           Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: 2:nodejs-18.13.0-1nodesource.x86_64 (nodesource)
           Requires: libm.so.6(GLIBC_2.27)(64bit)
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
mod_fcgid-2.3.9-6.el7.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)

我无法安装任何其他版本的 nodejs

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM