I’d like to play around with serverless command invoke local
and need your help.
Currently I use the example: https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb
$ npm install --save aws-sdk
$ npm install
$ sls invoke local -f create --data '{ "text": "Learn Serverless" }'
Syntax Error -------------------------------------------
Unexpected token u in JSON at position 0
$ sls invoke local -f list
# no any output
Are there anything wrong with the command I run, any hints for me?