EntryRootOriginal post
Web Developer
Hello, I am using Appwrite 1.7.4 on a self-hosted instance and am experiencing an issue with Appwrite Site's manual deployment.
PowerShell
[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.logI 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!
Summary
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.