Vite install fails because native modules need Python and a C++ toolchain

A dependency has to be compiled during install, and this build image has no Python or C toolchain for it. Name an image that does in a panelalpha.yaml, or use a release of this dependency that ships a prebuilt binary.

Seen9 times · 7 variants

Why it happens

The Vite build installs a native dependency, better-sqlite3, which runs node-gyp during npm install. The build image lacks Python and the native C/C++ toolchain required to compile it. npm also reports that the detected npm version is below the package's declared requirement, although the missing compiler toolchain is the immediate failure.

What the log looks like

Deploy log
Starting stage: runningDetected project type: ViteCompiling static assets on hostnpm error path /app/node_modules/better-sqlite3npm error command sh -c node-gyp rebuildnpm error gyp ERR! find Pythonnpm error gyp ERR! find Python --python was not set on the command linenpm error gyp ERR! find Python - executable path is ""npm error code 1

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation