1. EasyHost
  2. Errors
  3. node-gyp fails: could not find Python

node-gyp fails: could not find Python

A native module has no prebuilt binary for Alpine, and the base image has no compiler toolchain.

Last updated November 9, 2026

The error

gyp ERR! find Python

Why it happens

A native module has no prebuilt binary for Alpine, and the base image has no compiler toolchain.

How to fix it

Prefer a package with prebuilt musl binaries, such as @node-rs/bcrypt instead of bcrypt.

npm rm bcrypt
npm i @node-rs/bcrypt

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