侧边栏壁纸
  • 累计撰写 120 篇文章
  • 累计创建 281 个标签
  • 累计收到 11 条评论
标签搜索
隐藏侧边栏

hexo问题记录

骐骏
2016-07-10 / 0 评论 / 0 点赞 / 635 阅读 / 0 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2016-07-10,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

<ol>
<li><p>hexo添加feed插件后报错</p>
<pre><code><figure class="highlight"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html</div><div class="line">Template render error: (unknown path) [Line 8, Column 23]</div><div class="line">Error: Unable to call the return value of (posts[&quot;first&quot;])[&quot;updated&quot;][&quot;toISOStrin&quot;], which is undefined or falsey</div><div class="line"> at Object.exports.withPrettyErrors (E:\hexo\node_modules\hexo-generator-feed\node_modules\nunjucks\src\lib.js:35:17)</div><div class="line"> at Obj.extend.render (E:\hexo\node_modules\hexo-generator-feed\node_modules\nunjucks\src\environment.js:374:20)</div><div class="line"> at Hexo.module.exports (E:\hexo\node_modules\hexo-generator-feed\lib\generator.js:33:22)</div></pre></td></tr></table></figure>
</code></pre></li>
<li><p>添加feed插件后hexo server无法使用</p>
<p> 原因是在站点的配置文件中添加了 </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">plugins:</div><div class="line">- hexo-generator-feed</div></pre></td></tr></table></figure>
<p> 去掉改配置,将依赖添加到站点的package.json中即可解决</p>
</li>
<li><p>升级win10后,hexo d 无法部署问题<br> 重新生成公钥,gitbash将公钥默认生成到C:\Windows\System32\config\systemprofile.ssh目录下 需要保证用户对该目录有读写权限</p>
</li>
</ol>

0

评论区