Closed
Description
Describe the bug
Currently have the following issue on all assests (File & Docker) in Codepipeline:
Entering phase INSTALL
[Container] 2025/02/18 16:22:31.177078 Running command npm install -g cdk-assets@latest
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @aws-sdk/[email protected]
npm warn Found: @aws-sdk/[email protected]
npm warn node_modules/cdk-assets/node_modules/@aws-sdk/client-s3
npm warn @aws-sdk/client-s3@"3.741" from [email protected]
npm warn node_modules/cdk-assets
npm warn cdk-assets@"3.0.0-rc.144" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peer @aws-sdk/client-s3@"^3.750.0" from @aws-sdk/[email protected]
npm warn node_modules/cdk-assets/node_modules/@aws-sdk/lib-storage
npm warn @aws-sdk/lib-storage@"^3.750.0" from [email protected]
npm warn node_modules/cdk-assets
npm warn
npm warn Conflicting peer dependency: @aws-sdk/[email protected]
npm warn node_modules/@aws-sdk/client-s3
npm warn peer @aws-sdk/client-s3@"^3.750.0" from @aws-sdk/[email protected]
npm warn node_modules/cdk-assets/node_modules/@aws-sdk/lib-storage
npm warn @aws-sdk/lib-storage@"^3.750.0" from [email protected]
npm warn node_modules/cdk-assets
npm error code ETARGET
npm error notarget No matching version found for @aws-cdk/cloud-assembly-schema@^40.1.0.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
I can understand why this is an issue with [email protected]
, but why does CodePipeline try to install latest version.
Apologies if this is not a cdk
issue.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
Expected Behavior
No installation errors.
Current Behavior
Installation errors.
Reproduction Steps
My pipeline:
const pipeline = new CodePipeline(this, 'pipeline', {
pipelineName: props.pipelineName,
synth: new ShellStep('synth', {
input: CodePipelineSource.codeCommit(
props.fromCodeCommitRepository,
props.fromCodeCommitBranch
),
commands: ['npm ci', 'npm run build', 'npx cdk synth'],
}),
})
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
/
Framework Version
No response
Node.js Version
/
OS
/
Language
TypeScript
Language Version
No response
Other information
No response