10:16:48.303 FATAL { err: TypeError: Cannot read property 'color' of undefined at module.exports (/home/zhou/Projects/blog/themes/next/scripts/events/lib/vendors.js:34:41) at Hexo.<anonymous> (/home/zhou/Projects/blog/themes/next/scripts/events/index.js:9:27) at Hexo.tryCatcher (/home/zhou/Projects/blog/node_modules/bluebird/js/release/util.js:16:23) at Hexo.<anonymous> (/home/zhou/Projects/blog/node_modules/bluebird/js/release/method.js:15:34) at /home/zhou/Projects/blog/node_modules/hexo/lib/extend/filter.js:67:52 at tryCatcher (/home/zhou/Projects/blog/node_modules/bluebird/js/release/util.js:16:23) at Object.gotValue (/home/zhou/Projects/blog/node_modules/bluebird/js/release/reduce.js:166:18) at Object.gotAccum (/home/zhou/Projects/blog/node_modules/bluebird/js/release/reduce.js:155:25) at Object.tryCatcher (/home/zhou/Projects/blog/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/zhou/Projects/blog/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/home/zhou/Projects/blog/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromiseCtx (/home/zhou/Projects/blog/node_modules/bluebird/js/release/promise.js:641:10) at _drainQueueStep (/home/zhou/Projects/blog/node_modules/bluebird/js/release/async.js:97:12) at _drainQueue (/home/zhou/Projects/blog/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/home/zhou/Projects/blog/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (/home/zhou/Projects/blog/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:464:21) } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
设置进度条color属性
根据上面的错误提示,一个叫 color 属性为空导致。对比了默认的配置文件和我自己的默认文件之后,发现我的配置文件 _config.yml 中没有 pace 字段,当然也不会有下面的属性 color 了。 这个 pace 是用来显示页面加载的动画和进度的,我暂时是没有用到。直接把这块的配置复制过来,不启用就可以了。
完整这步之后就再也没有其他的问题了。
1 2 3 4 5 6 7 8 9
pace: enable: false # All available colors: # black | blue | green | orange | pink | purple | red | silver | white | yellow color: blue # All available themes: # big-counter | bounce | barber-shop | center-atom | center-circle | center-radar | center-simple # corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal theme: minimal