Skip to content

SDK Build Failure of Meteor App Due to Node 14 End of Life

0

After 2 successful builds this morning, our sdk build is failing now, reporting

notsup Unsupported engine for aws-cdk@2.1000.1: wanted: {"node":">= 16.0.0"} (current: {"node":"14.21.3","npm":"6.14.18"})

We have a very large app and have been working hard to upgrade it to Node 18, but our work is not yet complete. Is there any way to continue building with Node 14 until we complete our upgrade? Thank you!

  • 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

asked 2 years ago200 views

1 Answer
0

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:

  1. 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.

  2. Temporary workaround: You could try using the --ignore-engines flag 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.

  3. 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.

  4. 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.