Unable to run cdk commands on my windows having python installed

Viewed 5965

Installed aws-cdk using pip on windows10. After restart, when i run cdk --version on cmd prompt, it says 'cdk' is not recognized as an internal or external command, operable program or batch file.

aws --version aws-cli/2.0.30 Python/3.7.7 Windows/10 botocore/2.0.0dev34

python --version Python 3.8.1

Do I need to install NodeJS as well?

Please help me setup cdk on my windows10 laptop....

1 Answers

Based on the official documentation you need to have Node.js installed.

And I'll quote from the documentation

All CDK developers need to install Node.js 10.3.0 or later, even those working in languages other than TypeScript or JavaScript.

Also..

Install the AWS CDK Toolkit globally using the following Node Package Manager command.

npm install -g aws-cdk

After that you should be able to run cdk --version without any issues

Related