nodesource/distributions

setup_8 not works for CentOS6

Closed this issue · 3 comments

lwr commented

I am following the instruction at https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora

and then

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

and then

sudo yum -y install nodejs

and then only 6.11.2 is available

========================================================================================================================================================
 Package                       Arch                          Version                                            Repository                         Size
========================================================================================================================================================
Updating:
 nodejs                        x86_64                        2:6.11.2-1nodesource.el6                           nodesource                        9.5 M

Transaction Summary
========================================================================================================================================================
Upgrade       1 Package(s)
Total download size: 9.5 M

and then ends up with 404

Downloading Packages:
https://rpm.nodesource.com/pub_8.x/el/6/x86_64/nodejs-6.11.2-1nodesource.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.



Error Downloading Packages:
  2:nodejs-6.11.2-1nodesource.el6.x86_64: failure: nodejs-6.11.2-1nodesource.el6.x86_64.rpm from nodesource: [Errno 256] No more mirrors to try.

Anyway I can success install the package with rpm

curl -O https://rpm.nodesource.com/pub_8.x/el/6/x86_64/nodejs-8.4.0-1nodesource.el6.x86_64.rpm
rpm -ivhU nodejs-8.4.0-1nodesource.el6.x86_64.rpm 

Same issue on RHEL 7

jx759 commented

I had this issue when updating node from version node 6.x to 8.x

I had to remove the old yum.repos.d file for node - and even then it didn't work - required a yum clean all

After that I was able to upgrade to 8.x

For first time installation - the install instructions seem to work for me - however when updating node on a server - there is a problem.

ppmdo commented

@rsajan Thanks, your solution worked.