ghost博客安装sqlite3报错

小北_kidbei
  • 49

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环境下都试了,同样的问题,请问怎么解决?

回复
阅读 3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏