-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] Node.js 16 cannot be installed into amazonlinux on docker #1664
[ERROR] Node.js 16 cannot be installed into amazonlinux on docker #1664
Comments
I replaced the setup curl with the instructions here and it worked: |
You can also try to use this commands from nodesource documentation |
Having the same issue. I'm sure there are other methods to install but we've been using the setup_x method over 15 times/week for quite some time and they all started failing today. In the above result, as well as my own output, it is returning system version as system-release-2-15.amzn2.x86_64, which i do not believe exists. as a result, the script is trying to install the rpm from [2-1] (https://rpm.nodesource.com/pub_16.x/el/2/x86_64/nodesource-release-el2-1.noarch.rpm), an endpoint which does not exist. it is supposed to return system-release-2-14 based on #rpm -q --whatprovides redhat-release , which the script then would point to https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm , an endpoint that still works. It was returning that endpoint yesterday for us, as far as I can tell.
|
This solution may help |
Hello guys, please do not use any more the installation scripts.
|
@GrahamCampbell you can't install node 18 on amazon linux 2 Amazon linux 2 has |
Thanks for confirming. I figured that was the case, so I guess Amazon have made some code changes to node 18 to get it to build on AL2 for their node18 lambda environment. |
@GrahamCampbell it has been many years since I've had to deal with any of this, but, historically when this came up (too-old versions of |
Describe your bug
================================================================================
742 | ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
743 | ================================================================================
744 |
745 | SCRIPT DEPRECATION WARNING
746 |
747 |
748 | This script, located at https://rpm.nodesource.com/setup_X, used to
749 | install Node.js is deprecated now and will eventually be made inactive.
750 |
751 | Please visit the NodeSource distributions Github and follow the
752 | instructions to migrate your repo.
753 | https://github.com/nodesource/distributions
754 |
755 | The NodeSource Node.js Linux distributions GitHub repository contains
756 | information about which versions of Node.js and which Linux distributions
757 | are supported and how to install it.
758 | https://github.com/nodesource/distributions
759 |
760 |
761 | SCRIPT DEPRECATION WARNING
762 |
763 | ================================================================================
764 | ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
765 | ================================================================================
766 |
767 | TO AVOID THIS WAIT MIGRATE THE SCRIPT
768 | Continuing in 60 seconds (press Ctrl-C to abort) ...
769 |
770 |
771 | ## Installing the NodeSource Node.js 16.x repo...
772 |
773 |
774 | ## Inspecting system...
775 |
776 | + uname -m
777 | system-release-2-15.amzn2.x86_64
778 | exec redhat-release
779 | Release package: system-release-2-15.amzn2.x86_64
780 |
781 | ## Confirming "el2-x86_64" is supported...
782 |
783 | + curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_16.x/el/2/x86_64/nodesource-release-el2-1.noarch.rpm'
784 |
785 | ## Your distribution, identified as "system-release-2-15.amzn2.x86_64", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
786 |
787 | The command '/bin/sh -c curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - && yum install -y nodejs' returned a non-zero code: 1
Distribution Information:
Node Version:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Node.js v16 should be installed
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here, specify if already has another NodeJS version or if trying to re-install the current version.
The text was updated successfully, but these errors were encountered: