sergey icon indicating copy to clipboard operation
sergey copied to clipboard

npm run dev returns error

Open varlevi opened this issue 5 years ago • 3 comments

When running npm run dev on the basic starter setup, I get the following error in the terminal:

Couldn't create folder: ./public/

and when I open up localhost:8080, all that shows up is the text: Cannot GET /.

This is my first time using sergey and I'm super excited, so thanks for any help or advice!

varlevi avatar Jun 04 '20 19:06 varlevi

What's your file structure like? It's a little difficult to infer anything from what you said.

theedigerati avatar Jun 11 '20 13:06 theedigerati

Just the base file structure from the started template found here.

varlevi avatar Jun 11 '20 14:06 varlevi

What's your package.json file like? Make sure this exists in it : "scripts": { "start": "sergey", "dev": "sergey --watch" }, Also make sure you have the index.html file in the root directory of the project, because that's what will be loaded on the live server

theedigerati avatar Jun 11 '20 14:06 theedigerati