Install Specific CDK Versions And/Or By Project#
You can install the CDK toolkit for a specific project by omitting -g from the npm install command then invoking it with npx aws-cdk. You can also install the toolkit for a specific version with npm install -g [email protected].
Install specific version for a project#
- Navigate to project directory
npm install [email protected]npx aws-cdk ...
Install specific version globally#
npm install -g [email protected]aws-cdk ...
Use the installed version#
npx aws-cdk ...