hexo打包报TypeError Cannot read property 'count' of undefined

某一天,突然想将自己的博客文章发布打包项目时,报如下错误:

$ hexo g
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: Cannot read property 'count' of undefined
at Hexo.module.exports (E:\github\hexo\node_modules\hexo-baidu-url-submit\lib\generator.js:4:40)
at Hexo.tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (E:\github\hexo\node_modules\bluebird\js\release\method.js:15:34)
at E:\github\hexo\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (E:\github\hexo\node_modules\bluebird\js\release\map.js:61:38)
at MappingPromiseArray.PromiseArray._iterate (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:113:31)
at MappingPromiseArray.init (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:77:10)
at MappingPromiseArray._asyncInit (E:\github\hexo\node_modules\bluebird\js\release\map.js:30:10)
at Async._drainQueue (E:\github\hexo\node_modules\bluebird\js\release\async.js:138:12)
at Async._drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)
FATAL Cannot read property 'count' of undefined
TypeError: Cannot read property 'count' of undefined
at Hexo.module.exports (E:\github\hexo\node_modules\hexo-baidu-url-submit\lib\generator.js:4:40)
at Hexo.tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (E:\github\hexo\node_modules\bluebird\js\release\method.js:15:34)
at E:\github\hexo\node_modules\hexo\lib\hexo\index.js:337:24
at tryCatcher (E:\github\hexo\node_modules\bluebird\js\release\util.js:16:23)
at MappingPromiseArray._promiseFulfilled (E:\github\hexo\node_modules\bluebird\js\release\map.js:61:38)
at MappingPromiseArray.PromiseArray._iterate (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:113:31)
at MappingPromiseArray.init (E:\github\hexo\node_modules\bluebird\js\release\promise_array.js:77:10)
at MappingPromiseArray._asyncInit (E:\github\hexo\node_modules\bluebird\js\release\map.js:30:10)
at Async._drainQueue (E:\github\hexo\node_modules\bluebird\js\release\async.js:138:12)
at Async._drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (E:\github\hexo\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:649:20)
at tryOnImmediate (timers.js:622:5)
at processImmediate [as _immediateCallback] (timers.js:594:5)

原因:安装了百度推送的插件导致

话不多说,解决方案如下:

运行如下指令

1.npm remove hexo-baidu-url-submit
2.hexo clean
3.hexo g


 上一篇
SpringBoot yml文件自定义属性乱码 SpringBoot yml文件自定义属性乱码
在springboot的application.yml文件中有中文时,读取出来的是乱码,需要进行一下操作: 将idea的配置编码设置为UTF-8,步骤如下: 1.Files->Editor->File Encodings,设置
2019-11-25
下一篇 
SpringBoot 2.0启动报No active profile set, falling back to default SpringBoot 2.0启动报No active profile set, falling back to default
创建一个SpringBoot项目之后,控制台打印如下: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___
2019-11-24
  目录