Skip to content

cdk-assets: Cannot install cdk-assets@latest in CodePipeline #34484

Closed
@dcaruso-pathpoint

Description

@dcaruso-pathpoint

Describe the bug

Same bug as #33491

[Container] 2025/05/16 19:34:37.444087 Running command npm install -g cdk-assets@latest

29 | npm warn ERESOLVE overriding peer dependency
30 | npm warn While resolving: @aws-sdk/[email protected]
31 | npm warn Found: peer @aws-sdk/client-s3@"^3.812.0" from the root project
32 | npm warn
33 | npm warn Could not resolve dependency:
34 | npm warn peer @aws-sdk/client-s3@"^3.812.0" from the root project
35 | npm error code ETARGET
36 | npm error notarget No matching version found for @aws-sdk/client-s3@^3.812.0.
37 | npm error notarget In most cases you or one of your dependencies are requesting
38 | npm error notarget a package version that doesn't exist.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

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

#33491 (comment)

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

[email protected]

AWS CDK CLI version

2.1016.0

Node.js Version

22

OS

mac

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-codepipelineRelated to AWS CodePipelinebugThis issue is a bug.p3response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions