Skip to content

Bug: Installation fails on Windows with NodeJS 22+ #1982

@vasiltabakov

Description

@vasiltabakov

Summary

Installing ghost on Windows via ghost install local fails complaining about Sqlite3 and missing python, but I already have python installed in my system:

[19:07:54] → Python is required for SQLite3
One or more errors occurred.

1) Checking SQLite build dependencies

Message: Python is required for SQLite3

Debug Information:
    OS: Microsoft Windows 11 Pro, v10.0.26100
    Node Version: v22.16.0
    Ghost-CLI Version: 1.28.3
    Environment: development
    Command: 'ghost install local --verbose'

Steps to Reproduce

  1. On windows using the latest cli try ghost install local

It doesn't work even after following the instructions here:
https://docs.ghost.org/faq/python-setuptools-required-sqlite3

Clearly the issue is because of how the CLI checks for python:
https://github.com/TryGhost/Ghost-CLI/blob/main/lib/commands/doctor/checks/python-setuptools.js#L10

  • python3 will not work on Windows, it has to be python
  • after making a symbolic link named python3 (via mklink) the installation succeeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions