当我尝试用CDK创建一个error TS2322: Type 'string' is not assignable to type 'ComponentConfigurationProperty | IResolvableMediaRecipe',
components: ["arn:aws:imagebuilder:us-west-1:aws:component/amazon-cloudwatch-agent-linux
我已经按照这里的说明安装了AWS CDK:https://github.com/aws/aws-cdk npm i -g aws-cdk运行得很愉快,但是当我从命令行运行cdk时,结果是 $ cdk-bash: cdk: command not found 遵循manual install instructions并不能解决这个问题。