hexo报错总结

admin 2022年1月6日01:38:42评论305 views1字数 844阅读2分48秒阅读模式

1、FATAL can not read a block mapping entry; a multiline key may not be an implicit key at line 9, column 9:

解决方法:在冒号后添加空格。

image-20191013220558427

2、npm install 报错

ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

解决:npm install ajv@^5.0.0

3、npm下载过慢

1
npm config set registry https://registry.npm.taobao.org

4、hexo s报错

ERROR Deployer not found: git的问题

解决方式:

  • deploy的type 的github需要改成git
  • npm install hexo-deployer-git –save
  • blog文件夹修改为github项目名称

5、/usr/local/include/node is not writable报错

执行brew link –overwrite node 报错

image-20191016114637907

解决方法:

1
2
$ cd /usr/local
$ sudo chown -R <your-username>:<your-group-name> *

使用命令: id -g 可以得到group name

6、The “mode” argument must be integer

1
2
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object

解决:

hexo版本太高,下载13.0的可以

FROM :b0urne.top | Author:b0urne

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年1月6日01:38:42
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   hexo报错总结https://cn-sec.com/archives/722081.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息