Skip to content
Back

Vite build permission failed

  • 0
  • Web
  • Cloud
Cth4n
10 Aug, 2025, 20:23

im trying to deploy a react site using appwrite sites and it keeps failing to build

TypeScript
2025-08-10T20:20:17.744324067Z [20:20:17] [open-runtimes] Environment preparation finished. 
2025-08-10T20:20:17.745837905Z [20:20:17] [open-runtimes] Build command execution started. 
2025-08-10T20:20:23.764821379Z added 6 packages, and audited 415 packages in 6s
2025-08-10T20:20:23.764940594Z 83 packages are looking for funding
2025-08-10T20:20:23.764958013Z   run `npm fund` for details
2025-08-10T20:20:23.776775822Z 3 moderate severity vulnerabilities
2025-08-10T20:20:23.776788428Z Some issues need review, and may require choosing
2025-08-10T20:20:23.776794067Z a different dependency.
2025-08-10T20:20:23.776804200Z Run `npm audit` for details.
2025-08-10T20:20:24.007812322Z > vite_react_shadcn_ts@0.0.0 build
2025-08-10T20:20:24.007816952Z > npx vite build
2025-08-10T20:20:24.598559570Z sh: vite: Permission denied
2025-08-10T20:20:29.000000000Z Build archive was not created.```
TL;DR
Developers are facing permission issues while building a React site with Vite and Appwrite. The error "sh: vite: Permission denied" is seen during deployment. This can be resolved by updating the permission settings to allow the build command to execute properly.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more