Netlify CMS local config error

Hi I’m struggling with an odd issue.

Just done a clean install of the netlify cms hugo site starter template. All seems ok except but for some reason I get this error when I try to access the cms admin on local host:

# Error loading the CMS configuration

**Config Errors:**

YAMLSyntaxError: All collection items must start at the same column at line 1, column 1: <!doctype html> ^^^^^^^^^^^^^^^…

Check your config.yml file.

Has anyone seen this before? Any help greatly appreciated!


Can you possibly post a screenshot or code snippet of your config.yml, it’ll help diagnose further. Sounds like it might just be a YAML indentation problem.

Hi thanks!

It’s the default file from the netlify template project:

Hi @russco I think you need to access the local site via http://localhost:3000/admin/ and not http://localhost:3000/admin (notice the / at the end).

just so you know I run into this also and the trailing / makes no difference. oddly, it seems to redirect to /admin/#/

Hi @rickgregory, can you share your config/repo/site URL? Are you still experiencing this?

I’m getting the same issue, the same config file was OK only the other other day with no changes. Repo/branch below.

@MichaelDono there’s a stray curly bracket at line 51 of your config.yml, you might want to remove that

1 Like

Yep that fixed the issue for me, good spot!


Hello, this error message pops up whenever I try to install Netlify CLI on my laptop.

Try searching the community forum or open a new topic as it doesn’t seem related to this one.