ghost博客安装sqlite3报错
Ghost博客执行npm install成功,但是npm start的时候报错
ERROR: Cannot find module '/home/kidbei/IdeaProject/ghost/node_modules/sqlite3/lib/binding/node-v51-linux-x64/node_sqlite3.node'
Error: Cannot find module '/home/kidbei/IdeaProject/ghost/node_modules/sqlite3/lib/binding/node-v51-linux-x64/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/kidbei/IdeaProject/ghost/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Client_SQLite3.initDriver (/home/kidbei/IdeaProject/ghost/node_modules/knex/lib/dialects/sqlite3/index.js:41:24)
at new Client_SQLite3 (/home/kidbei/IdeaProject/ghost/node_modules/knex/lib/dialects/sqlite3/index.js:15:10)
at Knex.initialize (/home/kidbei/IdeaProject/ghost/node_modules/knex/knex.js:109:15)
at Knex (/home/kidbei/IdeaProject/ghost/node_modules/knex/knex.js:13:26)
at ConfigManager.set (/home/kidbei/IdeaProject/ghost/core/server/config/index.js:155:24)
at ConfigManager.init (/home/kidbei/IdeaProject/ghost/core/server/config/index.js:78:10)
at /home/kidbei/IdeaProject/ghost/core/server/config/index.js:269:30
at tryCatcher (/home/kidbei/IdeaProject/ghost/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/kidbei/IdeaProject/ghost/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/home/kidbei/IdeaProject/ghost/node_modules/bluebird/js/main/promise.js:581:18)
我在mac和deepin环境下都试了,同样的问题,请问怎么解决?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论