部署失败:fatal: iconv_open(UTF-8,UTF-8-MAC) failed
fuzihaofzh opened this issue · comments
Zihao Fu commented
请教我部署的时候收到以下的错误,请问是什么原因?
INFO 360 files generated in 1.92 s
INFO Validating config
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
fatal: iconv_open(UTF-8,UTF-8-MAC) failed, but needed:
precomposed unicode is not supported.
If you want to use decomposed unicode, run
"git config core.precomposeunicode false"
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (/Users/maple/workbench/explore/blogdbg/node_modules/hexo-util/lib/spawn.js:51:21)
at ChildProcess.emit (node:events:514:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Mimi commented
你的文件名中有特殊字符(例如,文章的名称等等)。解决方法是先执行
git config --global core.precomposeunicode false