aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.96k stars 556 forks source link

No matching version found for `@aws-sdk/middleware-flexible-checksums@3.587.0` #6152

Closed TenviLi closed 1 week ago

TenviLi commented 1 month ago

Checkboxes for prior research

Describe the bug

Install latest(@aws-sdk/client-s3@3.587.0) failed No matching version found for @aws-sdk/middleware-flexible-checksums@3.587.0

SDK version number

@aws-sdk/client-s3@3.587.0, @aws-sdk/middleware-flexible-checksums@3.587.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v18.12.0

Reproduction Steps

Just run pnpm install @aws-sdk/client-s3

Observed Behavior

No matching version found for @aws-sdk/middleware-flexible-checksums@3.587.0

This error happened while installing the dependencies of @aws-sdk/client-s3@3.587.0

The latest release of @aws-sdk/middleware-flexible-checksums is "3.577.0".

If you need the full list of all 97 published versions run "$ pnpm view @aws-sdk/middleware-flexible-checksums versions".

Expected Behavior

Check @aws-sdk/middleware-flexible-checksums@3.587.0

Possible Solution

No response

Additional Information/Context

No response

RanVaknin commented 3 weeks ago

Hi @TenviLi,

I'm not seeing this issue when installing client-s3:

$ pnpm init
Wrote to /Users/rvaknin/test_folder/6152/package.json

{
  "name": "6152",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}
$ pnpm install @aws-sdk/client-s3
Packages: +98
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 98, reused 98, downloaded 0, added 98, done

dependencies:
+ @aws-sdk/client-s3 3.590.0

Done in 1.5s
$ pnpm ls
Legend: production dependency, optional only, dev only

6152@1.0.0 /Users/rvaknin/test_folder/6152

dependencies:
@aws-sdk/client-s3 3.590.0

This also works perfectly when I'm explicitly installing @aws-sdk/client-s3@3.587.0

My guess is that somewhere in your lock file you have multiple versions of the S3 installed and it creates a conflict.

You should run pnpm dedupe, and see if it solves your issue.

Thanks, Ran~

github-actions[bot] commented 2 weeks ago

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.