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

Knex: run$ npm install sqlite3 --saveCannot find module #99

Closed
yanlee26 opened this issue May 12, 2020 · 2 comments
Closed

Knex: run$ npm install sqlite3 --saveCannot find module #99

yanlee26 opened this issue May 12, 2020 · 2 comments
Labels
invalid Issue doesn't apply or is working as intended.

Comments

@yanlee26
Copy link

I used it like this:

const db = connect('./store.db', {
  client: 'sqlite3'
})

in MacOS and the error is:

Knex: run$ npm install sqlite3 --saveCannot find module '/Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/sqlite3/lib/binding/electron-v8.2-darwin-x64/node_sqlite3.node'Require stack:- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/sqlite3/lib/sqlite3-binding.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/sqlite3/lib/sqlite3.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/knex/lib/dialects/sqlite3/index.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/knex/lib/knex.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/knex/lib/index.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/knex/knex.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/trilogy/dist/index.js- /Users/elliotyan/Documents/me/electron-with-sqlite3/preload.jsError: Cannot find module '/Users/elliotyan/Documents/me/electron-with-sqlite3/node_modules/sqlite3/lib/binding/electron-v8.2-darwin-x64/node_sqlite3.node'

@yanlee26 yanlee26 added the type: bug Something isn't working as intended or expected. label May 12, 2020
@haltcase
Copy link
Owner

@yanlee26 I'd be glad to help, but you'll have to provide more information. Please use the issue template next time.

Did you install the sqlite3 module like the error message says?

npm install sqlite3

@haltcase haltcase added the status: need response Waiting for more information from the issue author. label May 12, 2020
@haltcase
Copy link
Owner

I'm going to close due to lack of info and response. Please reopen if you can still reproduce the issue and provide the information required to debug it.

@haltcase haltcase added invalid Issue doesn't apply or is working as intended. and removed status: need response Waiting for more information from the issue author. type: bug Something isn't working as intended or expected. labels May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issue doesn't apply or is working as intended.
Projects
None yet
Development

No branches or pull requests

2 participants