How to install the AWS CDK on macOS
This post lists the steps needed to install the latest version of AWS CDK on macOS.
Apple Command Line Tools
Nvm
nvm
is node.js version manager.
Close and reopen terminal.
Node.js
Install via nvm
:
Make sure you do not have default node set:
Activate node 20.16.0:
Configure npm
Configure npm
(Node Package Manager) to save versions of packages in packages.json
. This way you can have the same stable environment on all development machines:
AWS CDK
Install the AWS CDK globally (so that you can bootstrap a new CDK project in your language choice) in any folder:
Test: