node-gyp fails: could not find Python
A native module has no prebuilt binary for your base image, and Alpine images have no compiler toolchain. A package with prebuilt binaries, such as @node-rs/bcrypt instead of bcrypt, avoids the compile.
Last updated November 25, 2026
The error
gyp ERR! find Python
Why it happens
A native module has no prebuilt binary for your base image, and Alpine images have no compiler toolchain. A package with prebuilt binaries, such as @node-rs/bcrypt instead of bcrypt, avoids the compile.
How to fix it
Install the build toolchain in your Dockerfile before the install step.
RUN apk add --no-cache python3 make g++
Still stuck
Read the build log and runtime logs, or browse all errors.
Start for free
Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.
$npx ezhst skill install