I already have cdk installed and works fine. When I try to update it by running
sudo npm install -g aws-cdk@latest
It gives me ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/aws-cdk/bin/cdk' error. When I check the path, cdk exists so I'm not sure why it is not able to find the file.
npm version: 7.5.2
cdk version: 1.86.0