[root@spring2-vm ~]# yum repolist Loaded plugins: fastestmirror, langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Determining fastest mirrors repo id repo name status !base/7/x86_64 CentOS-7 - Base 10,019 !docker-ce-stable/x86_64 Docker CE Stable - x86_64 36 !extras/7/x86_64 CentOS-7 - Extras 371 !openlogic/7/x86_64 CentOS-7 - openlogic packages for x86_64 125 !updates/7/x86_64 CentOS-7 - Updates 1,163 repolist: 11,714 [root@spring2-vm ~]# yum install -y epel-release Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 extras | 3.4 kB 00:00:00 openlogic | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): openlogic/7/x86_64/primary_db | 90 kB 00:00:00 (2/4): docker-ce-stable/x86_64/primary_db | 26 kB 00:00:00 (3/4): extras/7/x86_64/primary_db | 187 kB 00:00:00 (4/4): updates/7/x86_64/primary_db | 3.4 MB 00:00:01 Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-11 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================= Package Arch Version Repository Size ========================================================================================================= Installing: epel-release noarch 7-11 extras 15 k Transaction Summary ========================================================================================================= Install 1 Package Total download size: 15 k Installed size: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-11.noarch 1/1 Verifying : epel-release-7-11.noarch 1/1 Installed: epel-release.noarch 0:7-11 Complete! [root@spring2-vm ~]# yum install -y npm nodejs Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile epel/x86_64/metalink | 5.4 kB 00:00:00 * epel: sg.fedora.ipserverone.com epel | 4.7 kB 00:00:00 epel/x86_64/primary_db FAILED http://mirror.horizon.vn/epel/7/x86_64/repodata/05ab8c85ce32816c9d8a3895c815d20d7b348c40ef586a41ac127f072c9bbfc1-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors If above article doesn't help to resolve this issue please use https://bugs.centos.org/. (1/3): epel/x86_64/group_gz | 88 kB 00:00:00 (2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00 (3/3): epel/x86_64/primary_db | 6.6 MB 00:00:06 Resolving Dependencies --> Running transaction check ---> Package nodejs.x86_64 1:6.16.0-1.el7 will be installed --> Processing Dependency: libuv >= 1:1.9.1 for package: 1:nodejs-6.16.0-1.el7.x86_64 --> Processing Dependency: libicudata.so.50()(64bit) for package: 1:nodejs-6.16.0-1.el7.x86_64 --> Processing Dependency: libicui18n.so.50()(64bit) for package: 1:nodejs-6.16.0-1.el7.x86_64 --> Processing Dependency: libicuuc.so.50()(64bit) for package: 1:nodejs-6.16.0-1.el7.x86_64 --> Processing Dependency: libuv.so.1()(64bit) for package: 1:nodejs-6.16.0-1.el7.x86_64 ---> Package npm.x86_64 1:3.10.10-1.6.16.0.1.el7 will be installed --> Running transaction check ---> Package libicu.x86_64 0:50.1.2-17.el7 will be installed ---> Package libuv.x86_64 1:1.26.0-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================= Package Arch Version Repository Size ========================================================================================================= Installing: nodejs x86_64 1:6.16.0-1.el7 epel 4.7 M npm x86_64 1:3.10.10-1.6.16.0.1.el7 epel 2.5 M Installing for dependencies: libicu x86_64 50.1.2-17.el7 base 6.9 M libuv x86_64 1:1.26.0-1.el7 epel 132 k Transaction Summary ========================================================================================================= Install 2 Packages (+2 Dependent packages) Total download size: 14 M Installed size: 51 M Downloading packages: warning: /var/cache/yum/x86_64/7/epel/packages/nodejs-6.16.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for nodejs-6.16.0-1.el7.x86_64.rpm is not installed (1/4): nodejs-6.16.0-1.el7.x86_64.rpm | 4.7 MB 00:00:00 (2/4): libuv-1.26.0-1.el7.x86_64.rpm | 132 kB 00:00:00 (3/4): npm-3.10.10-1.6.16.0.1.el7.x86_64.rpm | 2.5 MB 00:00:01 (4/4): libicu-50.1.2-17.el7.x86_64.rpm | 6.9 MB 00:00:02 --------------------------------------------------------------------------------------------------------- Total 5.6 MB/s | 14 MB 00:00:02 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libicu-50.1.2-17.el7.x86_64 1/4 Installing : 1:libuv-1.26.0-1.el7.x86_64 2/4 Installing : 1:npm-3.10.10-1.6.16.0.1.el7.x86_64 3/4 Installing : 1:nodejs-6.16.0-1.el7.x86_64 4/4 Verifying : 1:libuv-1.26.0-1.el7.x86_64 1/4 Verifying : libicu-50.1.2-17.el7.x86_64 2/4 Verifying : 1:npm-3.10.10-1.6.16.0.1.el7.x86_64 3/4 Verifying : 1:nodejs-6.16.0-1.el7.x86_64 4/4 Installed: nodejs.x86_64 1:6.16.0-1.el7 npm.x86_64 1:3.10.10-1.6.16.0.1.el7 Dependency Installed: libicu.x86_64 0:50.1.2-17.el7 libuv.x86_64 1:1.26.0-1.el7 Complete! [root@spring2-vm ~]# node -v v6.16.0 [root@spring2-vm ~]# npm -v 3.10.10 [root@spring2-vm ~]#
Overview
Content Tools
Add Comment