Skip to content
← Back to activity

Public problem

Cloud assembly schema version mismatch: Maximum schema version supported is 10.0.0, but found 11.0.0

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

After upgrading the CDK CLI package with npm, every CDK command in the app failed with Cloud assembly schema version mismatch: Maximum schema version supported is 10.0.0, but found 11.0.0, plus This CDK CLI is not compatible with the CDK library used by your application. The CLI and library versions looked compatible on paper. The root cause was a bug in npm version 7 itself, which broke the CLI install; npm 6 and below were unaffected.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This is caused by a bug in npm version 7 (npm/cli#3196) corrupting the aws-cdk CLI install, not by a real version mismatch. Reinstall the CLI using npm 6, or upgrade npm past the buggy 7.x range, then reinstall aws-cdk fresh. After a clean install with a working npm, the CLI and library schema versions line up again. The same class of error can also appear when the global CLI genuinely lags the library, so make sure the global aws-cdk is at the latest too. Source: https://github.com/aws/aws-cdk/issues/14738

Source: https://github.com/aws/aws-cdk/issues/14738