node-gyp "not found: make" in CI
node-gyp drives a native compile that needs make and a C/C++ compiler. The build failed because the runner has no build toolchain installed.
What this error means
Installing a native addon fails with "gyp ERR! stack Error: not found: make". The runner lacks build-essential / a compiler that your local machine already has.
node
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (.../which.js:13:12)Common causes
No build toolchain on the runner
A slim image omits make, gcc, and g++ that node-gyp invokes to compile the addon.
Compiler present but make absent
Some images have a compiler but not GNU make, which node-gyp specifically calls.
How to fix it
Install the build toolchain
Add make and a C/C++ compiler before the install step.
Terminal
# Debian/Ubuntu
apt-get update && apt-get install -y build-essential python3
npm ciUse prebuilt binaries instead
Prefer packages that ship prebuilds so no compile (and no toolchain) is needed.
- Check whether the package offers prebuilt binaries for your platform.
- Ensure prebuild download is not blocked by network policy.
- Fall back to building only when a prebuild is unavailable.
How to prevent it
- Install build-essential on runners that compile native addons.
- Prefer packages with prebuilt binaries.
- Keep Python and the compiler available together for node-gyp.
Related guides
node-gyp "find Python" failed in CIFix node-gyp "gyp ERR! find Python ... Could not find any Python installation to use" in CI - the native buil…
node-gyp "gyp ERR! build error" - Fix Native Module Compilation in CIFix node-gyp "gyp ERR! build error" in CI - native addon compilation failing due to a missing compiler toolch…
node-pre-gyp "--fallback-to-build failed" in CIFix node-pre-gyp "install --fallback-to-build" failure in CI - the prebuilt binary download failed and the so…