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