最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

在CentOS 6.8安装节点

运维笔记admin25浏览0评论

在CentOS 6.8安装节点

在CentOS 6.8安装节点

我试图在CentOS使用这些指令6.8安装的NodeJS:

当我运行yum install nodejs

但我得到以下错误

Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 0:5.12.0-1nodesource.el7.centos will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: nodejs-5.12.0-1nodesource.el7.centos.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: nodejs-5.12.0-1nodesource.el7.centos.x86_64
--> Finished Dependency Resolution
Error: Package: nodejs-5.12.0-1nodesource.el7.centos.x86_64 (nodesource)
       Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: nodejs-5.12.0-1nodesource.el7.centos.x86_64 (nodesource)
       Requires: libc.so.6(GLIBC_2.15)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
回答如下:

也许你需要安装gcc-C ++和使用yum之前安装的NodeJS。

尝试这个:

$ yum install -y gcc-c++ make

$ curl -sL https://rpm.nodesource/setup_6.x | sudo -E bash -

接着:

$ yum install nodejs

并确认其使用:

$ node -v

http://tecadmin/install-latest-nodejs-and-npm-on-centos/

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论