serverless-frameworkmoonmail

Moonmail installation issue - Command "project" not found


I'm initializing Moonmail and following the readme, executing the following command:

sls project init -c -n your-lower-case-project-name

I'm getting the following:

Command "project" not found, Run "serverless help" for...

It seems that Serverless no longer has the "project" command (since version 0.5) and it has been replaced with "service" (which works a little differently).

What would be the way forward here?


Solution

  • Although they say that Moonmail supports version 0.5.2 or higher, it's not true. You need to use version 0.5x of the Serverless Framework and you can't use any version 1.x because 1.x is a complete rewrite.

    Unfortunately, the solution is to uninstall the current Serverless Framework and install an old version.

    npm -g uninstall serverless  
    npm -g install serverless@0.5.6