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

I tried to install but error arise when type node init-db.js. Says it sqlite drive maybe isn't installed #12

Open
jechaviz opened this issue Nov 7, 2020 · 1 comment

Comments

@jechaviz
Copy link

jechaviz commented Nov 7, 2020

Thank you so much..

Error ORMError: Connection protocol not supported - have you installed the database driver for sqlite?
at Object.exports.connect (C:\Users\L\Downloads\code\js\cote-workshop\node_modules\orm\lib\ORM.js:131:24)
at Object. (C:\Users\L\Downloads\code\js\cote-workshop\models.js:10:14)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (C:\Users\L\Downloads\code\js\cote-workshop\init-db.js:1:14)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12)
at node:internal/main/run_main_module:17:47 {
code: 4,
literalCode: 'NO_SUPPORT'
}

@jechaviz jechaviz changed the title I tried to install but error arise node init-db.js. Says it sqlite drive maybe isn't installed I tried to install but error arise when type node init-db.js. Says it sqlite drive maybe isn't installed Nov 7, 2020
@nyeroglu
Copy link

Because of ABI differences, Sqlite3 must be built in a custom to used with node-webkit(nw).
If you have nw-gyp installed, npm update may solves the problem, it will recompile depends on your arch.
https://www.npmjs.com/package/sqlite3#building-for-node-webkit

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

2 participants