DEV Community

Discussion on: A crash course on securing Serverless APIs with JSON web tokens

Collapse
 
hafizurcse profile image
hafizurcse

Hey, I have installed npm install --save-dev serverless-offline and I am getting the following when I try offline:

hafizur@hafizur-MacBookPro:~/aws-proj/express-sls-app$ sls offline start --skipCacheInvalidation

  Serverless Error ---------------------------------------

  Serverless command "offline" not found. Did you mean "config"? Run "serverless help" for a list of all available commands.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     OS:                     linux
     Node Version:           8.10.0
     Serverless Version:     1.40.0
Enter fullscreen mode Exit fullscreen mode
Collapse
 
er_raoniz profile image
Rahul Soni • Edited

Please revert if you found a solution. I, too, am experiencing this issue. Also, I have checked the credentials, they are properly configured.

Collapse
 
mkotsollaris profile image
Menelaos Kotsollaris

you have to make sure that you are properly authenticated to aws.

docs.aws.amazon.com/cli/latest/use...