All was well until I upgraded MacOS to 12.3 (Monterey) on my Macbook Air M1. Lost ghost and after backing node version to 14.7, could not run ghost start development without error:
paul@MacBookAirM1 my_ghost % ghost start development
Found a development config but not a production config, running in development mode instead
Checking system Node.js version - found v14.19.1
Checking current folder permissions
Validating config
Checking memory availability
Checking binary dependencies
Starting Ghost: ghost-local
A GhostError occurred.
Message: Ghost was able to start, but errored during boot with: Knex: run
$ npm install sqlite3 --save
Cannot find module ‘/Users/paul/my_ghost/versions/4.41.3/node_modules/sqlite3/lib/binding/napi-v3-darwin-arm64/node_sqlite3.node’
Require stack:
- /Users/paul/my_ghost/versions/4.41.3/node_modules/sqlite3/lib/sqlite3-binding.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/sqlite3/lib/sqlite3.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex/lib/dialects/sqlite3/index.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex/lib/config-resolver.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex/lib/knex.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex/lib/index.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex/knex.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex-migrator/lib/database.js
- /Users/paul/my_ghost/versions/4.41.3/node_modules/knex-migrator/lib/index.js
- /Users/paul/my_ghost/versions/4.41.3/core/server/data/db/state-manager.js
- /Users/paul/my_ghost/versions/4.41.3/core/boot.js
- /Users/paul/my_ghost/versions/4.41.3/ghost.js
- /Users/paul/my_ghost/versions/4.41.3/index.js
Debug Information:
OS: macOS, v12.3
Node Version: v14.19.1
Ghost Version: 4.41.3
Ghost-CLI Version: 1.19.2
Environment: development
Command: ‘ghost start development’
Additional log info available in: /Users/paul/.ghost/logs/ghost-cli-debug-2022-04-01T13_56_00_288Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to Ghost-CLI - A fully loaded tool for installation and configuration for troubleshooting.
paul@MacBookAirM1 my_ghost %
Any suggestions to fix this error … I’ve tried uninstalling and reinstalling ghost-cli