question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module node-v44-win32-x64\node_sqlite3.node

See original GitHub issue

When running Ghost I get an error about a node_sqlite3 module not found

Issue Summary

I’ve been getting an error on Windows 8 & 10 since Ghost@0.5.x about a node_sqlite3 module not found. I am using Ghost as middleware on Express.js. I’ve tried looking at solutions on the net, but it hasn’t worked. I upgraded to Ghost@latest[0.7.1] to see if problem goes away, but it still persists.

Steps to Reproduce

  1. Install Ghost@0.7.1 (or earlier) on Windows 10 x64
  2. Add Ghost as an Express middleware
  3. Run Express app, and observe crash (error details below)

I have uninstalled and reinstalled Ghost, and still get the same problem. my --msvs_version to build gyp modules is 2013, which doesn’t throw errors, so I’m not sure if that’s the problem.

Technical details:

  • Ghost Version: 0.7.1
  • Client OS: Windows 10 x64
  • Server OS: Ubuntu 14.04 x64
  • Node Version: 0.12.4, iojs 2.3.3
  • Browser: Chrome 47.xxx
  • Database: SQLite
Unhandled rejection Error: Cannot find module '[REDACTED]\node_modules\ghost\node_modules\sqlite3\lib\binding\node-v44-win32-x64\node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> ([REDACTED]\node_modules\ghost\node_modules\sqlite3\lib\sqlite3.js:4:15)
    at Module._compile (module.js:430:26)
    at Object.Module._extensions..js (module.js:448:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Client_SQLite3.initDriver ([REDACTED]\node_modules\ghost\node_modules\knex\lib\dialects\sqlite3\index.js:41:24)
    at new Client_SQLite3 ([REDACTED]\node_modules\ghost\node_modules\knex\lib\dialects\sqlite3\index.js:15:10)
    at Knex.initialize ([REDACTED]\node_modules\ghost\node_modules\knex\knex.js:109:15)
    at Knex ([REDACTED]\node_modules\ghost\node_modules\knex\knex.js:13:26)
    at ConfigManager.set ([REDACTED]\node_modules\ghost\core\server\config\index.js:153:24)
    at ConfigManager.init ([REDACTED]\node_modules\ghost\core\server\config\index.js:76:10)
    at [REDACTED]\node_modules\ghost\core\server\config\index.js:267:30
    at tryCatcher ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\util.js:24:31)
    at Promise._settlePromiseFromHandler ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\promise.js:454:31)
    at Promise._settlePromiseAt ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\promise.js:530:18)
    at Promise._settlePromises ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\promise.js:646:14)
    at Async._drainQueue ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\async.js:177:16)
    at Async._drainQueues ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\async.js:187:10)
    at Immediate.Async.drainQueues [as _onImmediate] ([REDACTED]\node_modules\ghost\node_modules\bluebird\js\main\async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:371:17)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

21reactions
elliotrockcommented, Feb 29, 2016

try:

npm install sqlite3 --build-from-source

That fixed my sqlite3 install.

7reactions
elliotrockcommented, Mar 23, 2016

I found the answer on stackoverflow, cannot recall right now. ᐧ

On Wed, Mar 23, 2016 at 11:35 PM, Hannah Wolfe notifications@github.com wrote:

We have a troubleshooting guide http://support.ghost.org/troubleshooting/ for install issues. The most important/useful bit of which is general steps for recovering from a failure http://support.ghost.org/troubleshooting/#fix-for-general-npm-install-errors .

Most of the time if an install fails and you try again using these steps, then you will find it works because the issue is with the reliability of npm. If you get repeated failures after retrying with these steps, then likely there is another problem with your environment and you can use the relevant part of the troubleshooting guide to get ideas for how to resolve these problems.

If you need help, please use slack https://ghost.org/slack rather than github as it’s much easier to back-and-forth there than it is on GitHub.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/TryGhost/Ghost/issues/5911#issuecomment-200329357

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module node_modules/sqlite3/lib/binding ...
The sqlite3 module works with Node.js v0.10.x, v0.12.x, v4.x, v5.x, v6.x and v7.x.
Read more >
Node.js says it can't load sqlite3 module, but does anyway
It seems this is a problem with the sqlite3 npm package itself. There exists a lib\binding\Release\ folder, but not a lib\binding\Debug\ folder.
Read more >
sqlite3 - npm
Start using sqlite3 in your project by running `npm i sqlite3`. ... The module uses node-pre-gyp to download the prebuilt binary for your ......
Read more >
Cannot find module: node_sqlite3.node - Support - Joplin Forum
Hi, I tried to install Joplin terminal app on Mac OSX. After I installed it via brew, I got the following error when...
Read more >
Can't start Ghost locally - cannot find module 'sqlite3'
A GhostError occurred. Message: Ghost was able to start, but errored during boot with: Knex: run. $ npm install sqlite3 —save. Cannot find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found