I had the same problem on Linux mint which is ubuntu under the hood. I am not exactly sure what the root cause is but it appears to be related to latest aws-cdk release 2.171.0 and how cdklocal is using prototypes when mocking aws-cdk calls.
Work around is to install the previous version of aws-cdk
npm install -g [email protected]