hexo问题记录

  1. hexo添加feed插件后报错

    1
    2
    3
    4
    5
    6
    FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
    Template render error: (unknown path) [Line 8, Column 23]
    Error: Unable to call `the return value of (posts["first"])["updated"]["toISOStrin"]`, which is undefined or falsey
    at Object.exports.withPrettyErrors (E:\hexo\node_modules\hexo-generator-feed\node_modules\nunjucks\src\lib.js:35:17)
    at Obj.extend.render (E:\hexo\node_modules\hexo-generator-feed\node_modules\nunjucks\src\environment.js:374:20)
    at Hexo.module.exports (E:\hexo\node_modules\hexo-generator-feed\lib\generator.js:33:22)
  2. 添加feed插件后hexo server无法使用

    原因是在站点的配置文件中添加了

    1
    2
    plugins:
    - hexo-generator-feed

    去掉改配置,将依赖添加到站点的package.json中即可解决

  3. 升级win10后,hexo d 无法部署问题
    重新生成公钥,gitbash将公钥默认生成到C:\Windows\System32\config\systemprofile.ssh目录下 需要保证用户对该目录有读写权限

骐骏 wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!
坚持原创技术分享,您的支持将鼓励我继续创作!