skip to Main Content

I want to create basic Hello World sls project, but I get the error:

✖ Configuration file not found in directory "D:node awsproject-tgg-2"

Here’s what I did:

haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws
$ sls --version

Serverless ϟ Framework
 • 4.1.7

haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws
$ mkdir project-tgg-1
mkdir: cannot create directory ‘project-tgg-1’: File exists

haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws
$ mkdir project-tgg-2

haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws
$ cd project-tgg-2/

haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws/project-tgg-2
$ sls create^C


✖ Configuration file not found in directory "D:node awsproject-tgg-2"


haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws/project-tgg-2
$ sls create --template hello-world


✖ Configuration file not found in directory "D:node awsproject-tgg-2"


haric@LAPTOP-Q7N9HUP9 MINGW64 /d/node aws/project-tgg-2
$ ^

Screenshot

2

Answers


  1. The error tells you that you are missing a configuration file. Either create it in the folder you want to run the command at, or specify where the configuration file is:

    sls create --config <filename>
    
    Login or Signup to reply.
  2. You have serverless 4 now.

    They have a subscription plan now, but the cli is far from done.
    If you run create with that version, you will have a bad time.

    Run only sls or serverless and create something, they will ask you for a license key.

    Try this npm i [email protected] -g

    And run your command again.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search