Vite build fails because Git is missing

Error recorded 1 times in PanelAlpha Engine deploys on Vite. The deploy log below is the recorded failure output.

Seen1 times
WhereVite

Why it happens

The Vite configuration runs git rev-parse --short HEAD during the build. The build container does not have the git executable, so the config hook exits with status 127 before the app can be built. The missing package-lock.json message is separate; this project uses pnpm and the build continues past it.

What the log looks like

Deploy log
$ vite build/bin/sh: 1: git: not founderror during build:Error: Command failed: git rev-parse --short HEAD...status: 127[ELIFECYCLE] Command failed with exit 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