- Newest
- Most votes
- Most comments
I understand your concern about the build failure due to Node.js 14 reaching end-of-life. Unfortunately, the AWS SDK for JavaScript (v3) has ended support for Node.js 14.x, which is causing the issue you're experiencing.
The error message you're seeing indicates that the AWS CDK version you're trying to use requires Node.js 16 or higher, while your current environment is still running Node.js 14.21.3.
There are a few potential options you could consider:
-
Use an older version of the AWS SDK and CDK: You may be able to continue using Node.js 14 by installing a specific older version of the AWS SDK and CDK that still supports Node.js 14. However, this is not recommended as you'll miss out on important updates and security patches.
-
Temporary workaround: You could try using the
--ignore-enginesflag when installing npm packages to bypass the Node.js version check. This might allow you to install the newer SDK versions, but be aware that this could lead to unexpected behavior or errors. -
Accelerate your upgrade: Given the end-of-life status of Node.js 14, the best long-term solution is to prioritize completing your upgrade to Node.js 18 as quickly as possible.
-
Dual environment: If possible, you could set up a separate build environment with Node.js 16+ for your AWS SDK and CDK operations, while keeping your main application on Node.js 14 until the upgrade is complete.
It's important to note that continuing to use Node.js 14 is not recommended due to lack of security updates and potential compatibility issues with newer package versions. The AWS SDK team strongly encourages upgrading to a supported Node.js version (like Node.js 20.x) to ensure continued security and compatibility.
If you absolutely must continue using Node.js 14 for a short period, consider using the oldest compatible version of the AWS SDK and CDK that still works with your setup, but plan to complete your upgrade as soon as possible to avoid further complications.
Sources
Announcing the end of support for Node.js 14.x in the AWS SDK for JavaScript (v3) | AWS Developer Tools Blog
Announcing the end of support for Node.js 16.x in the AWS SDK for JavaScript (v3) | AWS Developer Tools Blog
answered 2 years ago
Relevant content
asked 4 years ago
asked a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 4 months ago

This morning we ran the deployment again and it works without errors. We haven't changed anything and our app is still using the old version of Meteor and node. So, was this error related to node? I don't think so, otherwise the deployment would not have worked correctly this morning. What's was the error? Also we need to know when node 14 is not going to run anymore for deployments and run our app. We are migrating our app but it will take some time. Thanks in advance