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.

Ghost-CLI: npm install sqlite3 --save error

See original GitHub issue

Currently when using ghost-cli 1.0.0.4 and using ghost install local during the installation I get this error and the installation fails.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:27 (9 by maintainers)

github_iconTop GitHub Comments

20reactions
ErisDScommented, Jul 8, 2017

For anyone else who comes across this issue, it is caused by changing node versions after installing ghost-cli.

Sqlite3 is a binary dependency that comes with precompiled binaries and downloads the right one for your system on install. If you change the environment, it will look for a different binary, which wasn’t downloaded.

Ideally, the CLI would catch this error and explain clearly what the problem was 😬

2reactions
lparcommented, Nov 15, 2020

Got the same error when using Node 14 LTS (Fedora 33, Yarn). Downgrading to Node 12 LTS and removing and reinstalling ghost-cli fixed it. (yarn global remove ghost-cli && yarn global add ghost-cli)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ghost local installation fail because of 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 >
Fixing "Cannot find module 'sqlite3'" error when installing ...
I was getting the following error when installing Ghost v4 ... 1) GhostError $ npm install sqlite3 --save Cannot find module 'sqlite3'.
Read more >
Installing Ghost 1.8.6 with sqlite db fails after configuring ...
The ghost installer try to install sqlite3 via node but it seems there ... again and it seems to take the compiled version...
Read more >
NPM is throwing a bunch of errors when I try to install SQLite3
Whenever I run npm install --save sqlite3@^4.0.9 in my integrated terminal in Visual Studio Code, NPM throws these errors:
Read more >
Ghost Theme Development on WSL2 - Perspectives
sudo npm install -g ghost-cli@latest ghost install local ghost start ... Error: Knex: run $ npm install sqlite3 --save Cannot find module ...
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