[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-command-failed-git-rev-parse-short-head":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":17,"titleAccent":18,"lead":19,"facts":22,"why":37,"log":55,"fix":88,"engine":101,"related":109,"pitch":116},"vite","command-failed-git-rev-parse-short-head","Vite build fails because Git is missing","Vite",{"description":9},"Learn what causes Vite build fails because Git is missing, how PanelAlpha Engine responds to it during deployment.",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Fvite",{"label":6},"Vite build fails because ","Git is missing",[20],{"text":21},"Error recorded 1 times in PanelAlpha Engine deploys on Vite. The deploy log below is the recorded failure output.",[23,28,31,33],{"label":24,"value":25,"tone":26,"tooltip":27},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":29,"value":30},"Seen","1 times",{"label":32,"value":7},"Where",{"label":34,"value":35,"tooltip":36},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":38,"body":39},"Why it happens",[40,42,45,47,49,51,53],{"text":41},"The Vite configuration runs ",{"text":43,"code":44},"git rev-parse --short HEAD",true,{"text":46}," during the build. The build container does not have the ",{"text":48,"code":44},"git",{"text":50}," executable, so the config hook exits with status 127 before the app can be built. The missing ",{"text":52,"code":44},"package-lock.json",{"text":54}," message is separate; this project uses pnpm and the build continues past it.",{"heading":56,"block":57},"What the log looks like",{"header":58,"lines":59},"Deploy log",[60,64,68,72,76,80,84],{"segments":61},[62],{"text":63},"$ vite build",{"segments":65},[66],{"text":67},"\u002Fbin\u002Fsh: 1: git: not found",{"segments":69},[70],{"text":71},"error during build:",{"segments":73},[74],{"text":75},"Error: Command failed: git rev-parse --short HEAD",{"segments":77},[78],{"text":79},"...",{"segments":81},[82],{"text":83},"status: 127",{"segments":85},[86],{"text":87},"[ELIFECYCLE] Command failed with exit code 1.",{"heading":89,"steps":90,"block":98},"How to fix it",[91],[92,94,96],{"text":93},"Add Git to the build image or Dockerfile, then redeploy. Alternatively, update the Vite configuration to use an environment value or a fallback when Git is unavailable. Verify the build container can run ",{"text":95,"code":44},"git --version",{"text":97}," before retrying.",{"header":99,"lines":100},"Fix by hand",[],{"heading":102,"body":103,"block":106},"How PanelAlpha Engine solves it",[104],{"text":105},"The Engine could detect command-not-found failures from build hooks and report the missing executable directly. For Vite builds, it could preflight required tools or provide a documented build image with Git installed.",{"header":107,"lines":108},"",[],{"heading":110,"items":111},"Apps affected",[112],{"title":113,"badge":114,"tone":26,"href":115},"fluidd","1 occurrence","\u002Fapps\u002Ffluidd-core\u002Ffluidd",{"heading":117,"body":118,"footNote":119,"docsLabel":120,"docsHref":121},"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 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]