Please Add Support for NodeJS 16
NodeJS 16 entered active long-term support very recently. Can you please add this runtime to the codebuild images?
👍
workaround
phases:
install:
runtime-versions:
nodejs: 14
commands:
- n 16
If the images use version managers under the hood, why limit the number of available runtime versions to a static set? Couldn't these images just be updated to pass specific versions on to the underlying version managers?
I imagine this could even be backwards compatible with the existing implementation and require a lot less ongoing maintenance of this repository. And a lot fewer workarounds from CodeBuild users.
Specific versions like this would pass straight thru to the nodejs n version manager:
phases:
install:
runtime-versions:
nodejs: 16.13.1
and the image could still provide "supported" versions like 12, 14, 16:
phases:
install:
runtime-versions:
nodejs: 14
Just wanted to chime in and mention that I was able to use @koooge workaround to install a specific version of Node.js using CDK. You can see the relevant code in my template repo. Thank you!
waiting for support nodejs version 17
bump! 16 has been in LTS for a while now...
Bump. Would be really good to have this...
They're getting closer, it seems. NodeJS 16 runtime is now supported for Lambdas. However, it is not yet available for codebuild.
FYI, this seems to work now. docs still not updated but I tried it just now:
install:
runtime-versions:
nodejs: 16
[Container] 2022/05/23 14:01:37 No commands found for phase name: install
--
7 | [Container] 2022/05/23 14:01:37 Processing environment variables
8 | [Container] 2022/05/23 14:01:37 Selecting 'nodejs' runtime version '16' based on manual selections...
9 | [Container] 2022/05/23 14:01:37 Running command echo "Installing Node.js version 16 ..."
10 | Installing Node.js version 16 ...
11 |
12 | [Container] 2022/05/23 14:01:37 Running command n $NODE_16_VERSION
13 | copying : node/16.15.0
14 | installed : v16.15.0 (with npm 8.5.5)
Edit: don't recommend this yet. it only works sometimes and seems to be random chance if the build server supports it yet or not
Using a version manager isn't a viable solution to picking a version.
- It increases already long build times / startup for an already slow service.
- I'm paying for build times. See problem 1
- Builds running in a VPC without an internet connection cannot pull and build new versions of node
AMI2022 isn't supported on codebuild. AMI2 is dead along with CentOS. Ubuntu images do not have latest software available even a year after it's been released. Please support your own products.
- Saw that Lambda supports Node 16 now, as of 10 days ago.
- Created PR to update Lamdba runtime, updated the CodeBuild runtime at the same time.
- PR runs on CodeBuild, uses Node 16 as mentioned https://github.com/aws/aws-codebuild-docker-images/issues/490#issuecomment-1134723620.
- Merged PR.
- Other PRs are now failing saying
Unknown runtime version named '16' of nodejs.
So it seems that it isn't exactly fully rolled out. Very unfortunate it's only intermittently working, builds should be reproducible.
I also get 'nodejs16.x' runtime is not supported as a Lambda error when downgrading just CodeBuild.
Is there some way to clear the pool of build machines we're using and just get ones that support Node 16?
Tried in region ap-southeast-2... nodejs: 16 isn't available yet
Yesterday morning it was available. At night and now it is not. Looks like they are having some issues updating the version.
Yesterday morning it was available. At night and now it is not. Looks like they are having some issues updating the version.
Finally... it's good to know that they are working on it! I was checking https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html#linux-runtimes every week to see if it's available.
eu-central-1 also does not support it yet... really disappointed since the application won't build at pipelines and therefore blocks the use of node 16 and npm 8.
+1. It's a nice feature because Node 12 will go EOF at April 2022. AWS Lambda already have Node 16 available.
This is pressing. We went through the deal of upgrading lambdas to 16 and we use codebuild to build our lambdas. Hope there's a fix soon.
+1
workaround
phases: install: runtime-versions: nodejs: 14 commands: - n 16
This workaround works well and does not add a lot of time to the build process.
nodejs: latest is defaulting back to v12.22.2 again. It was pulling 14+ for the last few months.
nodejs: latest is defaulting back to v12.22.2 again. It was pulling 14+ for the last few months.
I'm sceptical :) What region, and what is your build config?