"sls dynamodb start" throws spawn java ENOENT
Apparently there is a bug with version serverless-dynamodb-local@0.2.31.
issue on github
I've downgraded to version 0.2.30 by using
npm uninstall serverless-dynamodb-local
sls dynamodb uninstall
npm install serverless-dynamodb-local@0.2.30
sls dynamodb install
Following the advice on serverless-dynamodb-local/issues/195, I just ran sls dynamodb install --localPath ./bin
and Dynamodb installed correctly. Running serverless offline start
then worked without error.