Error when starting ghost

I cannot start my ghost repository, the debug file is below:

Debug Information:
OS: Microsoft Windows 10 Pro, v10.0.19042
Node Version: v14.15.1
Ghost Version: 3.37.1
Ghost-CLI Version: 1.15.2
Environment: development
Command: ‘ghost start’
Message:
C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\client.js:235
throw new Error(${message}\n${e.message});
^

Error: Knex: run
$ npm install sqlite3 --save
Cannot find module ‘C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node’
Require stack:

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\sqlite3\lib\sqlite3-binding.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\sqlite3\lib\sqlite3.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\dialects\sqlite3\index.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\knex.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\index.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\knex.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\data\db\connection.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\index.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\index.js
  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\index.js
    at Client_SQLite3.initializeDriver (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\client.js:235:13)
    at Client_SQLite3.Client (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\client.js:69:10)
    at new Client_SQLite3 (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\dialects\sqlite3\index.js:17:10)
    at Knex (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\knex.js:53:28)
    at Object. (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\data\db\connection.js:34:20)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at isDatabaseInitialisationRequired (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\index.js:169:16)
    at makeGhost (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\index.js:13:12)
    at Object. (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\index.js:27:1)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)

Stack: Error:
C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\client.js:235
throw new Error(${message}\n${e.message});
^

Error: Knex: run
$ npm install sqlite3 --save
Cannot find module ‘C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node’
Require stack:

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\sqlite3\lib\sqlite3-binding.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\sqlite3\lib\sqlite3.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\dialects\sqlite3\index.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\knex.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\index.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\knex.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\data\db\connection.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\index.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\index.js

  • C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\index.js
    at Client_SQLite3.initializeDriver (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\client.js:235:13)
    at Client_SQLite3.Client (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\client.js:69:10)
    at new Client_SQLite3 (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\dialects\sqlite3\index.js:17:10)
    at Knex (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\node_modules\knex\lib\knex.js:53:28)
    at Object. (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\data\db\connection.js:34:20)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at isDatabaseInitialisationRequired (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\server\index.js:169:16)
    at makeGhost (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\core\index.js:13:12)
    at Object. (C:\Users\ADM\documents\projetos\ghost\versions\3.37.1\index.js:27:1)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)

    at ChildProcess. (C:\Users\ADM\AppData\Roaming\npm\node_modules\ghost-cli\lib\utils\local-process.js:65:35)
    at ChildProcess.emit (events.js:315:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

Can you try running ghost update --force and see if that fixes the problem? It looks like your node version changed so a node-version-specific dependency can no longer be found

1 Like

The ghost update --force didn’t worked, but the problem was in the node version, that I upgraded previously. Thank u for the answer!