YAML Exception when doing hexo g
See original GitHub issueHi,
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:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try putting your array element in quotes:
exclude: '*.min.css'
is ok