问题:
生成博客时出现了问题,TypeError: Cannot read property 'count' of undefined,百度没有相关的解决方案,谷歌到了github上的解决方案,搬运过来了。原网址github
$ 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)
解决方案:
npm remove hexo-baidu-url-submit
hexo clean
hexo g
删除百度自动提交就好了。。
本文解决了在使用Hexo生成博客时出现的TypeError错误,详细记录了错误信息及解决方案,涉及npm包管理、Hexo清理与生成命令,对遇到相似问题的Hexo用户有直接帮助。
1125

被折叠的 条评论
为什么被折叠?



