Closed VirgileZol closed 2 years ago
Node.js 18 is compatible with Linux distributions based on glibc 2.28 or later, for example, Debian 10, RHEL 8, and Ubuntu 20.04.
You can find more information in the release notes.
Hi @JesusPaz , please could you expand your comment a little?
What is the resolution for users who want to use both node 18 and amazonlinux2?
Is there a workaround or are you saying this is not possible?
See also
such a beast exists, and is provided by amazon themselves: the nodejs 18 aws lambda runtime -- which exactly includes nodejs 18 in an amazonlinux2 image. That obviously means that there must be a way to run both of them together. Maybe AWS could share their knowledge about how to build that ...
and https://serverfault.com/questions/1132783/how-can-i-get-node18-on-amazonlinux2
You can use the public.ecr.aws/lambda/nodejs:18
Docker image, which is an amazonlinux2
image with node18
Guys the thing is that AWS build their own version of Nodejs to run with glibc 2.27. We do not build Nodejs we distribute the Nodejs binaries as it comes from https://nodejs.org we only create the deb and rpm packages. There are several discussions on the node official repo about this. We can do nothing about this.
Thanks
There are several discussions on the node official repo about this.
Are you able to link to any, please?
AWS nodejs 18 used in beanstalk environments: https://elasticbeanstalk-platform-assets-eu-central-1.s3.eu-central-1.amazonaws.com/stalks/eb_nodejs18_amazon_linux_2_1.0.2234.0_20230627221929/lib/node-v18.16.1-linux-x64.tar.gz
AWS nodejs 18 used in beanstalk environments: https://elasticbeanstalk-platform-assets-eu-central-1.s3.eu-central-1.amazonaws.com/stalks/eb_nodejs18_amazon_linux_2_1.0.2234.0_20230627221929/lib/node-v18.16.1-linux-x64.tar.gz
In case anyone else needs 18.7.1:
Can be found by creating a sample NodeJS Beanstalk environment and looking at the Cloud Init logs/User Data of the instance that is created.
There is also the possibility to install node 18 from source nvm install -s 18.x.x
Can be found by creating a sample NodeJS Beanstalk environment and looking at the Cloud Init logs/User Data of the instance that is created.
It would be amazing if there were an easier / reliable way to obtain the latest. Or if Amazon could document their build process somewhere. Have they announced that this is officially supported by them?
EDIT: I see they've added NodeJS updates to Elastic Beanstalk's Release Notes. The latest one here, says they support NodeJS 18.19.0: https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2023-04-03-linux.html
EDIT 2: 18.19.0 available here:
It did not appear in the logs overtly. I had to determine the Amazon Linux 2 Build number and date from the Elastic Beanstalk logs, (2600 & 20231211220514) then add the known supported Node version (18.19.0) from the release notes above
Does anyone have some links to arm binaries, by chance?
Hi @rabbitfufu does the repo for arm is not working?
I just tried arm64 in the url and it seems to link to the arm build https://elasticbeanstalk-platform-assets-us-east-1.s3.amazonaws.com/stalks/eb_nodejs18_amazon_linux_2_1.0.2600.0_20231211220514/lib/node-v18.19.0-linux-arm64.tar.gz
⚠️ I would not download binaries provided by external sources nor suggested by non-maintainers users.
Thanks -- I should have thought to try the url like that. Appreciate the help.