Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'command not found' for aws-cdk after running the npm install

Tags:

npm

aws-cdk

I am trying to install the aws-cdk and in the terminal and I run the npm install -g aws-cdk. As stated here After npm runs, I get:

/usr/local/Cellar/node/9.8.0/bin/cdk -> /usr/local/Cellar/node/9.8.0/lib/node_modules/aws-cdk/bin/cdk
+ [email protected]
updated 1 package in 1.636s

If I try to run cdk I get:

zsh: command not found: cdk
like image 404
T. Gerdy Avatar asked Mar 05 '23 00:03

T. Gerdy


1 Answers

Installing as root worked for me: sudo npm install -g aws-cdk

like image 161
yogender Avatar answered Apr 30 '23 07:04

yogender