Error
If you see etiher of these errors when using Ghost-CLI:To fix
Starting with Node.js v22, there are no longer pre-built binaries to download for the sqlite3 module. To successfully build a binary for Node 22 you’ll need to have python 3 and setuptools installed. Ensure these tools are available by following the instructions below for your machine:- MacOS users with Brew:
brew install python-setuptools
- will install python3 + setuptools - MacOS users with Python installed locally:
python3 -m pip install setuptools
- will install setuptools - Ubuntu users:
apt install python3-setuptools
- will install python3 + setuptools - Windows users:
winget install Python.Python.3
- will install python3, thenpip install setuptools
will install setuptools