Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './db.json' #6

Open
xia-fei opened this issue Jan 17, 2019 · 2 comments
Open

Cannot find module './db.json' #6

xia-fei opened this issue Jan 17, 2019 · 2 comments

Comments

@xia-fei
Copy link

xia-fei commented Jan 17, 2019

大家都没遇到这个错吗?

C:\Users\XiaFei\Desktop\blog\hexo-huweihuang>hexo clean
(node:13996) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
ERROR Plugin load failed: hexo-server
Error: Cannot find module './db.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\XiaFei\Desktop\blog\hexo-huweihuang\node_modules\mime-db\index.js:11:18)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\XiaFei\Desktop\blog\hexo-huweihuang\node_modules\mime-types\index.js:15:10)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\XiaFei\Desktop\blog\hexo-huweihuang\node_modules\accepts\index.js:16:12)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
@Luhangh
Copy link

Luhangh commented Jan 18, 2019

一样的问题 怎么解决呢

@huweihuang
Copy link
Owner

huweihuang commented Jan 20, 2019

@xia-fei @Luhangh 试下 hexo clean的命令,清除掉缓存,然后重新生成,hexo g, hexo server
可能是因为之前把db.json的文件放到了.gitignore文件了。
参考修复的commit: ff93e00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants