关于hexo:hexo-升级540出现错误解决方法hexothemebutterfly

周末降级了下 hexo 到新版本,发现降级后,构建时呈现了一些谬误,以下是呈现的问题,及解决办法。

  • WARN Deprecated config detected: “external_link” with a Boolean value is deprecated. See https://hexo.io/docs/configur… for more details.

批改 _config.yml 文件,将如下内容做调整。

external_link: true

将下面的内容,批改为如下内容。

external_link:
  enable: true # Open external links in new tab
  field: site # Apply to the whole site
  exclude: ''
  • err: TypeError: Cannot read property ‘bind’ of undefined
err: TypeError: Cannot read property 'bind' of undefined
...
Script load failed: %s themes/butterfly/scripts/filters/post_lazyload.js

个别呈现相似谬误是因为降级hexo后,其余依赖未降级齐全,能够思考删除依赖,从新 install。

npm cache clean --force
rm -rf node_modules
rm package-lock.json
npm install
hexo clean
hexo g

能够参考git主题我的项目中的 issues-406 。

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理