# MacOS/Homebrew Lost Ghost-cli

**URL:** <https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351>\
**Category:** Developer help\
**Created:** [April 1, 2022, 2:03pm UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351 "2022-04-01T14:03:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zed4](https://avatars.discourse-cdn.com/v4/letter/z/aca169/32.png) [@zed4](https://forum.ghost.org/u/zed4)\
**Post date:** [April 1, 2022, 2:03pm UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/1 "2022-04-01T14:03:12Z")

</div>

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](https://ghost.org/docs/ghost-cli/) for troubleshooting.  
paul@MacBookAirM1 my\_ghost %

Any suggestions to fix this error … I’ve tried uninstalling and reinstalling ghost-cli

---

<div class="post-metadata">

**Author:** ![daniellockyer](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daniellockyer/32/11993_2.png) [@daniellockyer](https://forum.ghost.org/u/daniellockyer)\
**Post date:** [April 2, 2022, 7:56am UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/2 "2022-04-02T07:56:02Z")

</div>

Hey @zed4! 🙂 Would you be able to try with Ghost 4.42.0 (released yesterday)?

MacOS 12.3 removed Python 2, which broke the build for `sqlite3`, so we’ve had to switch to `@vscode/sqlite3`. I’m using an M1 w/ MacOS 12.3 and Node 16.14.2, and can confirm it definitely builds locally for me now 🙂

---

<div class="post-metadata">

**Author:** ![zed4](https://avatars.discourse-cdn.com/v4/letter/z/aca169/32.png) [@zed4](https://forum.ghost.org/u/zed4)\
**Post date:** [April 2, 2022, 9:25am UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/3 "2022-04-02T09:25:59Z")

</div>

Most definitely … I was wondering if it was something like that and was seriously considering going back to MacOS 12.0.1. I’ll try it out.

---

<div class="post-metadata">

**Author:** ![daniellockyer](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daniellockyer/32/11993_2.png) [@daniellockyer](https://forum.ghost.org/u/daniellockyer)\
**Post date:** [April 2, 2022, 9:58am UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/4 "2022-04-02T09:58:28Z")

</div>

Something else to check in case that’s not working - make sure you’re using the Apple Silicon build of Node. I’ve seen some weird issues with Rosetta. You can check which version you have by doing `file $(which node)` and it should say `arm64` on the end 🙂

---

<div class="post-metadata">

**Author:** ![zed4](https://avatars.discourse-cdn.com/v4/letter/z/aca169/32.png) [@zed4](https://forum.ghost.org/u/zed4)\
**Post date:** [April 2, 2022, 12:22pm UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/5 "2022-04-02T12:22:39Z")

</div>

Installed node 16.14.2 and checked and confirmed arm64 node build, but now I cannot get ghost-cli installed without lots of errors using node 16.14.2 . If I back off to node 14.19.1, then ghost-cli installs ok, BUT node is x86\_64 … assume that means its using Rosetta and not native. Now I can partially install ghost except sqlite3 fails. Do I need to install from source instead of using ghost-cli? Or is there a way to force later ghost version using ghost-cli?

---

<div class="post-metadata">

**Author:** ![zed4](https://avatars.discourse-cdn.com/v4/letter/z/aca169/32.png) [@zed4](https://forum.ghost.org/u/zed4)\
**Post date:** [April 2, 2022, 3:30pm UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/6 "2022-04-02T15:30:39Z")

</div>

\*\*\*\*\*\*\* Success \*\*\*\*\*\*\*\* 😃

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/d/3/d3f907113f0ebaadcf5fa2a5b7515571ec57f48b.png)

---

<div class="post-metadata">

**Author:** ![daniellockyer](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daniellockyer/32/11993_2.png) [@daniellockyer](https://forum.ghost.org/u/daniellockyer)\
**Post date:** [April 2, 2022, 4:57pm UTC](https://forum.ghost.org/t/macos-homebrew-lost-ghost-cli/29351/7 "2022-04-02T16:57:15Z")

</div>

@zed4 Great! What else did you have to do to fix it? 🙂
