question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YAML Exception when doing hexo g

See original GitHub issue

Hi,

When I install this plug in, some errors come up.

  ⚠ The `/Users/fjsdof/projects/blog/node_modules/hexo-all-minifier/node_modules/imagemin-mozjpeg/node_modules/mozjpeg/vendor/cjpeg` binary doesn't seem to work correctly
  ⚠ mozjpeg pre-build test failed
  ℹ compiling from source
  ✖ Error: autoreconf -fiv && ./configure --disable-shared --prefix="/Users/fjsdof/projects/blog/node_modules/hexo-all-minifier/node_modules/imagemin-mozjpeg/node_modules/mozjpeg/vendor" --bindir="/Users/fjsdof/projects/blog/node_modules/hexo-all-minifier/node_modules/imagemin-mozjpeg/node_modules/mozjpeg/vendor" --libdir="/Users/fjsdof/projects/blog/node_modules/hexo-all-minifier/node_modules/imagemin-mozjpeg/node_modules/mozjpeg/vendor" && make --jobs=4 && make install --jobs=4
Command failed: /bin/sh -c autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext

After that, I try to run

hexo g

There’s a YAML parse error.

FATAL unidentified alias ".min.css" at line 82, column 16:
        - *.min.css
                   ^
YAMLException: unidentified alias ".min.css" at line 82, column 16:
        - *.min.css
                   ^

My hexo version: ├─┬ hexo@3.2.0 │ ├─┬ hexo-cli@1.0.1

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sjaakvandenbergcommented, Mar 23, 2016

Try putting your array element in quotes:

css_minifier:
  enable: true
  exclude:
    - '*.min.css'
0reactions
longshilincommented, Oct 13, 2018

exclude: '*.min.css' is ok

Read more comments on GitHub >

github_iconTop Results From Across the Web

hexo YAMLException - Running_Leon
Hexo YAMLException. `$ hexo g. INFO Start processing. ERROR Process failed: _posts/xx.md. YAMLException: can not read a block mapping entry; ...
Read more >
Troubleshooting | Hexo
YAML Parsing Error​​ Wrap the string with quotations if it contains colons. Make sure you are using soft tabs and add a space...
Read more >
My review of Hexo, a Node-powered static site generator
Finally, finally, npm install -g hexo-cli worked the way it was supposed to! Beware special characters when using YAML & markdown to write...
Read more >
Post.js doesn't escape data with double quote characters ... - Issuehunt
YAML processing exception thrown: YAMLException: can not read a block mapping entry ... frontMatter (<>\import\node_modules\hexo\lib\hexo\post.js:149:63) at ...
Read more >
"There was a YAML syntax error"... "mapping values are not ...
Instead of the issue being in the _config.yml file, it was in a completely different file altogether. So, if you get this error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found