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

Could not find sqlite3 module #18

Open
davidnge opened this issue Aug 20, 2019 · 1 comment
Open

Could not find sqlite3 module #18

davidnge opened this issue Aug 20, 2019 · 1 comment

Comments

@davidnge
Copy link

davidnge commented Aug 20, 2019

Hi,

I'm trying to use this project in my app but having a hard time getting the basics set up.

I'm following the install guide on https://github.com/simov/express-admin-examples

  • git clone the repo
  • run npm install
  • updated the path for my db in config/sqlite/config.json
  • node fixtures/sqlite/import.js (i have a sqlite db)
  • running admin config/sqlite/ gives the error > Could not find sqlite3 module

I'm running Node v10.6.0

and I checked that I do have sqlite3 installed.

here's the package.json

{
    "name": "express-admin-examples",
    "version": "1.0.0",
    "description": "Examples for Express Admin.",
    "license": "MIT",
    "homepage": "https://github.com/simov/express-admin-examples",
    "author": {
        "name": "simo",
        "email": "[email protected]"
    },
    "repository": {
        "type": "git",
        "url": "git://github.com/simov/express-admin-examples.git"
    },
    "dependencies": {
        "cloudinary": "*",
        "express": "3.4.4",
        "moment": "*",
        "sqlite3": "^4.1.0"
    },
    "scripts": {
        "postinstall": "node path.js"
    }
}

I've tried searching online but nothing seems to solve it. Could you advise what I might have done wrong here?

Thanks and appreciate your help on this. Let me know if you need anything to debug this issue.

@atesztoth
Copy link

Hello!
Run npm rebuild in your project dir, that'll fix the issue. The problem is for some reason sqlite3 was not built properly on your machine, so you don't have a binding folder in node_modules/sqlite3/lib/binding.

I faced the same issue, and it's super annoying.

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