distributions: Can't install nodejs 10.x, failed at 98% of the download

Hello, it’s impossible to install node 10.x

Steps to reproduce with docker:

docker run -it amazonlinux sh

then

yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_10.x | bash -E
yum remove -y nodejs npm && yum install -y nodejs

Result:

sh-4.2# yum remove -y nodejs npm && yum install -y nodejs
Loaded plugins: ovl, priorities
No Match for argument: nodejs
No Match for argument: npm
No Packages marked for removal
Loaded plugins: ovl, priorities
nodesource                                                                                                                                                                   | 2.5 kB  00:00:00     
nodesource/x86_64/primary_db                                                                                                                                                 |  46 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:10.22.0-1nodesource will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================
 Package                                   Arch                                      Version                                                    Repository                                     Size
====================================================================================================================================================================================================
Installing:
 nodejs                                    x86_64                                    2:10.22.0-1nodesource                                      nodesource                                     20 M

Transaction Summary
====================================================================================================================================================================================================
Install  1 Package

Total download size: 20 M
Installed size: 61 M
Downloading packages:
nodejs-10.22.0-1nodesource.x86 FAILED                                               98% [=======================================================================- ] 3.0 MB/s |  20 MB  00:00:00 ETA 
https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodejs-10.22.0-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata
Trying other mirror.


Error downloading packages:
  2:nodejs-10.22.0-1nodesource.x86_64: [Errno 256] No more mirrors to try.

My website was down for 3hours because of this 😢

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 21 (2 by maintainers)

Most upvoted comments

The CDN provider has had problems updating the cache of some locations in Europe. We are actively working to fix it.

I have a Amazon Linux 2 server in Virginia that successfully downloads nodejs 10.x as demonstrated above:

curl -sL https://rpm.nodesource.com/setup_10.x | bash -E

However, the Amazon Linux 2 server in Paris is experiencing the same error as indicated in the above issue. Perhaps the problem is regional. I also notice that @hbouhadji is based in France, adding more to my thinking that this failure to download is a regional problem.