# 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.

## 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](/docs/cli/deployments-log) and [runtime logs](/docs/cli/logs), or browse [all errors](/errors).
