hexo-include-markdown icon indicating copy to clipboard operation
hexo-include-markdown copied to clipboard

Error: [hexo-include-markdown] Could not open db.json

Open bennycode opened this issue 4 years ago • 3 comments

I ran hexo clean && hexo generate and now I am getting this error:

FATAL Error: [hexo-include-markdown] Could not open db.json . at ReadFileContext.callback (C:\dev\projects\bennycode\typescript.tv\node_modules\hexo-include-markdown\lib\orverwriteCache.js:22:15) at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:283:13)

bennycode avatar May 22 '21 11:05 bennycode

Thanks to https://github.com/tea3/hexo-include-markdown/issues/4 I was able to get around the problem by using:

touch db.json && hexo clean && touch db.json && hexo generate && hexo server --open

@tea3 can you avoid throwing an error in your code when "db.json" is not found or just create an empty "db.json"?

bennycode avatar May 23 '21 15:05 bennycode

the same problem!

appotry avatar Aug 03 '22 04:08 appotry

@appotry you can use my plugin: https://github.com/bennycode/hexo-insert-markdown

bennycode avatar Aug 05 '22 13:08 bennycode