-
Notifications
You must be signed in to change notification settings - Fork 615
Specifying a version to install requires newer dependencies than specified, which breaks on older systems #7057
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
Comments
Please update your node version as the JS SDK v3 has dropped support for Node.js 14.x on May 1, 2024. PR |
@zshzbh As already stated: "I have a legacy project that requires node version 14. I know this version is no longer officially supported, but this is actually an issue with just installation, not use. Installing the last version of the SDK that supports nodejs version 14 doesn't work due to dependency issues." Running the same install with Node 18 still installs the later versions of the packages, so specifying the version number is broken on later versions of node as well. Here's the wrong version install from node 18:
|
I think the one last try would be setting If you insist to use Node 14, I just came up with a solution, it might be weird, but you can upgrade the node version to ">=18.0.0" and install the aws js sdk package, and use node version 14(I don't know if that's gonna work tho, if that's not working, it's not working, and we won't fix this because the support for Node.js 14.x has been dropped). Still, I highly suggest to upgrade node version as node 14 has reached end of life in Feb 16, 2023 - https://nodejs.org/en/about/previous-releases For node 18 installations -
What error message did you see? Could you please post the error message here? |
@zshzbh thanks for the response.
Regarding upgrading: Legacy projects can't just be upgraded to the latest version of node for convenience sake. It would be a major undertaking to rewrite the software to work with a newer version. Regarding the Node 18 installation: there isn't an error per se, but you can see that it is still installing the latest versions of the tooling even when requesting a specific version of the software. If I request installation of version 3.565, I expect all of the dependencies to match that version. Instead, The good news is that I think I found a solution. I had to manually install two packages with specific versions in order to get client-s3 to install, and I could not use npm i @aws-sdk/[email protected]
npm i @aws-sdk/[email protected]
npm i @aws-sdk/[email protected] As I said, the main issue is that requesting a specific version of Another solution would be that the package here was using proper semver instead, but I don't see that happening. (Completely removing support for a specific node version should have moved the major release version number up from 3 to 4.) |
Edit: I posted this without the latest comment from @nabeards having loaded, a workaround was found. This is because the Please work around this by adding an override for the
|
@kuhe your overrides workaround only works in NPM versions greater than 8.3.0, which I think I could custom-install for NodeJS v14. I did try with the |
Checkboxes for prior research
Describe the bug
I have a legacy project that requires node version 14. I know this version is no longer officially supported, but this is actually an issue with just installation, not use. Installing the last version of the SDK that supports nodejs version 14 doesn't work due to dependency issues.
Install and resulting error:
yarn add @aws-sdk/[email protected]
error @aws-sdk/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.0.0". Got "14.18.1"
I installed that same version into another project using a later nodejs version, and found that multiple dependencies somehow force-require later versions (3.804). Below is the full module dependency tree. For example, you'll see that later versions of lower dependencies are being required, [email protected], [email protected], [email protected], etc. I would expect installing a specific version would work.
Regression Issue
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node v14.18.1
Reproduction Steps
Observed Behavior
Expected Behavior
Installing version 3.565 should successfully install with proper dependencies.
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: