Skip to content
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

Add support for Node 20 #631

Closed
joshlang opened this issue May 8, 2023 · 28 comments
Closed

Add support for Node 20 #631

joshlang opened this issue May 8, 2023 · 28 comments

Comments

@joshlang
Copy link

joshlang commented May 8, 2023

Hello there 👋 ,

Now that Node 20 is LTS (https://nodejs.org/en/), can we add support for Node 20 as a supported runtime on CodeBuild?

Thanks heaps.

#580

@joshlang
Copy link
Author

joshlang commented May 8, 2023

Just gettin' a headstart so maybe it'll be ready when LTS is ready (October?), rather than waiting an extra year

@pvcresin
Copy link

pvcresin commented Sep 12, 2023

As per the above comments, the following command worked in my environment using aws/codebuild/standard:7.0.

phases:
  install:
    runtime-versions:
      nodejs: 18
    commands:
      - n 20

@ashley-jisc
Copy link

It would be really great to get Node 20 support. These long release windows from AWS really causes issues for us when it comes to maintenance.

@alexahdp
Copy link

+1 it would be good to be able to start working with v20. Otherwise, it is not very convenient to use CodeBuild.

@estrudels
Copy link

estrudels commented Oct 16, 2023

+1 Our team would appreciate very much to get Node 20 support 🌞

aws/aws-lambda-base-images#91 (comment)

Hopefully by December 2023?

@eadoking
Copy link

Hello guys, any help needed to proceed for Node 20 images, ready to help afternoons and on weekends

@pablomayobre
Copy link

20 LTS is a thing starting today, good luck AWS team

@TheNathanBlake
Copy link

I'd love to see this happen well before AWS stops supporting node 16 because porting over an entire codebase is tedious enough that I'd love to jump straight to 20 instead of using 18 for 1 month as a stop-gap.

@tfaller
Copy link

tfaller commented Nov 14, 2023

public.ecr.aws/lambda/nodejs:20 is now available as a pre release image

@AllyMurray
Copy link

https://aws.amazon.com/about-aws/whats-new/2023/11/aws-lambda-support-node-js-20/

@htxiong
Copy link

htxiong commented Nov 21, 2023

👍 can someone process this pull request, it will be really helpful for my team as we are upgrading our systems to node 20.

@wilhen01
Copy link

wilhen01 commented Dec 1, 2023

+1 on this. Ideally I would hope to see new Ubuntu / Amazon Linux images being released at the same time as Lambda support for new Node versions.

@mrbusche
Copy link

mrbusche commented Dec 1, 2023

@wilhen01
Copy link

wilhen01 commented Dec 1, 2023

Is this complete? https://aws.amazon.com/blogs/compute/node-js-20-x-runtime-now-available-in-aws-lambda/

Yes, Node 20 support for Lambda is out in the wild. I just checked the Lambda console and it's listed as an available runtime (it's the default if you click 'Create Function')

@joshlang
Copy link
Author

joshlang commented Dec 1, 2023

They've completed an image which supports AWS 20

It is available for LAMBDA users

It is not yet available for CODEBUILD users

So, you can try using the n 20 command if you just want node 20... but if you want your build image to be the same as your execution image, then you're still stuck waiting for codebuild to support the image.

Codebuild: https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html
Lambda: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

@wilhen01
Copy link

wilhen01 commented Dec 1, 2023

We used the n workaround for Node 18 while we waited for CodeBuild support and it was annoyingly flakey - we'd see builds time out attempting to download the node binaries every couple of days. I'd definitely advocate waiting for proper support if you can.

@Dylan-AWS
Copy link
Contributor

Dylan-AWS commented Dec 14, 2023

CodeBuild released Node 20 in the AL:5.0 image and Ubuntu 7.0 (#689).

@perrin4869
Copy link

What about support for the arm images?

@wilhen01
Copy link

Yep, seconded on ARM images. I'll raise a new issue...

@mbp
Copy link

mbp commented Jan 8, 2024

We used the n workaround for Node 18 while we waited for CodeBuild support and it was annoyingly flakey - we'd see builds time out attempting to download the node binaries every couple of days. I'd definitely advocate waiting for proper support if you can.

I learned today that you can use n 20 --offline and it will use the cached version already on the image, and not go fetch the latest on the internet. This should fix flakey behaviour.

@wilhen01
Copy link

wilhen01 commented Jan 9, 2024

That's a good trick @mbp - thanks! I think I'm happy to wait for "proper" Node 20 support but always useful to know the workarounds 😊

@aws aws deleted a comment from shellscape Jan 17, 2024
@aws aws deleted a comment from shellscape Jan 17, 2024
@ashley-jisc
Copy link

Why are comments suddenly getting deleted? @aws

@shellscape
Copy link

They're deleting replies that are critical of the delay in adding Node 20 support.

@aclark4life
Copy link

n 20 saved me! Thanks all for this thread.

@Dylan-AWS
Copy link
Contributor

CodeBuild released Node20 for ARM (#697)

@shellscape
Copy link

@Dylan-AWS what of x86_64?

@subinataws
Copy link
Contributor

Node 20 is supported in x86_64 Linux images: Amazon Linux, Ubuntu version. This was added in a prior release.

@peter-at-work
Copy link

node 20 has been supported for a while. But can we have node 20 instead of node 18 as the default

so that runs that request node 20 would save about a minute not having to n 20 switch from node 18 to node 20?

Considering that node 20 is ACTIVE and node 18 is MAINTENANCE at this time https://github.com/nodejs/Release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests