Skip to content
Back

Appwrite Sites: Error At Deployment

  • 0
  • Self Hosted
  • Web
EntryRoot
27 May, 2025, 12:50

Hello, I am using Appwrite 1.7.4 on a self-hosted instance and am experiencing an issue with Appwrite Site's manual deployment.

TypeScript
[12:44:43] [open-runtimes] Environment preparation started.  [12:44:50] [open-runtimes] Environment preparation finished.  [12:44:50] [open-runtimes] Build command execution started.  npm error code ENOENT npm error syscall open npm error path /usr/local/build/package.json npm error errno -2 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/usr/local/build/package.json' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: /root/.npm/_logs/2025-05-27T12_44_50_352Z-debug-0.log

I am trying to upload a small vite react web app as a tar.gz. The error says that a package.json file could not be found although the uploaded directory does indeed contain one.

This is my first app with Appwrite Sites, I'd appreciate any help. Thank you!

TL;DR
Issue: Error during manual deployment of a Vite React web app on Appwrite Sites; specifically, package.json not found despite being present in the uploaded directory. Solution: The error is likely due to an incorrect path specified for the package.json file. Double-check the path and ensure that it matches the location of the file within the uploaded directory.
EntryRoot
27 May, 2025, 12:51

Appwrite Sites: Error At Deployment

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