Support Forums

Netlify dev fails with a cecil dev error

for peacefulscience.netlify.app I can’t get “netlify dev” to run.

It fails like this:

◈ Netlify Dev ◈
◈ Injected netlify.toml file env var: HUGO_VERSION
◈ Injected netlify.toml file env var: HUGO_ENV
◈ Injected netlify.toml file env var: NODE_VERSION
◈ Injected build settings env var: SITEMAP_URL
◈ Injected addon env var: NETLIFY_LFS_ORIGIN_URL
◈ Ignored general context env var: LANG (defined in process)
◈ Starting Netlify Dev with Cecil
◈ Failed running command: cecil serve. Please verify 'cecil' exists

After installing cecil with npm (which was not installed with netlify-cli), I get a different error.

Error: ENOENT: no such file or directory, open 'PATHTO/peacefulscience.org/serve'
◈ "cecil serve" exited with code 0. Shutting down Netlify Dev server

“PATHTO” was the absolute path to the repo’s folder.

netlify version is…

netlify-cli/8.0.1 darwin-x64 node-v16.12.0

How do I get netlify dev to work locally?

Could you share your netlify.toml?

1 Like

Currently github is down (!). But here is what the toml fill includes:

command = “hugo mod clean && hugo -b $URL”
publish = “public/”

HUGO_VERSION = “0.89.0”
HUGO_ENV = “development”

HUGO_ENV = “production”

command = “hugo -b $DEPLOY_PRIME_URL”

command = “hugo -b $DEPLOY_PRIME_URL --buildDrafts”

This works just fine on netlify deploy from the github repo (when github isn’t down, that is).

Also, the command:

netlify build

completes without any errors.

Okay, it appears that netlify wasn’t correctly detecting hugo and thought my site was a cecil site. THese new configs seem to fix the problem:

command = "hugo -b -w --buildDrafts -F "
framework = "#static"
publish = "./public/"