aws / aws-lambda-base-images

Apache License 2.0
685 stars 111 forks source link

Break change: There is no yum in nodejs20.x #213

Open bellondr opened 2 weeks ago

bellondr commented 2 weeks ago

yum is not exist in amazon/aws-lambda-nodejs:20

Screenshot 2024-11-12 at 19 49 27
leandrodamascena commented 2 weeks ago

Hey @bellondr! Nodejs 20.x uses Amazon Linux 2023 and in this OS you must use dnf instead of yum.

Check here: https://docs.aws.amazon.com/lambda/latest/dg/nodejs-image.html

bellondr commented 2 weeks ago

@leandrodamascena thanks for your reply. I have a question: how to install chromium in amazon/aws-lambda-nodejs:20 ? When I use dnf install chromium, return [error pas](error: No package matches 'chromium')

Screenshot 2024-11-12 at 23 03 27
leandrodamascena commented 2 weeks ago

I don't know if you can install this using dnf @bellondr! Looks like you'll need to find alternative ways.

There is an open issue in the Amazon Linux 2023 repository about this: https://github.com/amazonlinux/amazon-linux-2023/issues/356