gpt4 book ai didi

node.js - Node webkit 错误 : please install sqlite3 package manually

转载 作者:IT老高 更新时间:2023-10-28 23:00:19 26 4
gpt4 key购买 nike

我正在使用 node-webkitSequelizesqlite3。 Node 运行应用程序没有问题,但是当我从 node-webkit 运行它时,它会抛出这个错误

"Uncaught Error: The dialect sqlite is not supported. (Error: Please install sqlite3 package manually)", source: /Users/mariowise/projects/node-webkit/requies-pos/node_modules/sequelize/lib/sequelize.js (176)

这是我的依赖项

"dependencies": {
"express": "~4.2.0",
"static-favicon": "~1.0.0",
"morgan": "~1.0.0",
"cookie-parser": "~1.0.1",
"body-parser": "~1.0.0",
"debug": "~0.7.4",
"jade": "~1.3.0",
"nunjucks": "^1.0.5",
"sqlite3": "~2.1.19",
"config": "0.4.33",
"sequelize": "~2.0.0-rc1",
"sequelize-sqlite": "~1.7.0"
}

最佳答案

根据 sqlite3 模块文档,您似乎需要从源代码构建一个 node-webkit 特定版本的 sqlite3,而不是依赖直接来自 npm 的版本:

https://github.com/mapbox/node-sqlite3#building-for-node-webkit

关于node.js - Node webkit 错误 : please install sqlite3 package manually,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25954491/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com