I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start supposed to create the package.json file automatically?
TypeScript
2025-06-30T18:23:40.676997823Z [18:23:40] [open-runtimes] Environment preparation finished.
2025-06-30T18:23:40.677950060Z [18:23:40] [open-runtimes] Build command execution started.
2025-06-30T18:23:41.939668102Z npm error code ENOENT
2025-06-30T18:23:41.940460033Z npm error syscall open
2025-06-30T18:23:41.940694481Z npm error path /usr/local/build/package.json
2025-06-30T18:23:41.941998014Z npm error errno -2
2025-06-30T18:23:41.944198129Z npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/usr/local/build/package.json'
2025-06-30T18:23:41.944340495Z npm error enoent This is related to npm not being able to find a file.
2025-06-30T18:23:41.944359662Z npm error enoent
2025-06-30T18:23:41.946414779Z npm error A complete log of this run can be found in: /root/.npm/_logs/2025-06-30T18_23_40_853Z-debug-0.log
2025-06-30T18:23:46.000000000Z Build archive was not created.```
And sometimes, I get this error instead:
```2025-06-30T18:32:17.398463836Z tar: short read
2025-06-30T18:32:22.000000000Z Build archive was not created.```
TL;DR
Developers are having issues with the Quick Start feature for function creation in Node.js, as it fails to locate the package.json file automatically. This causes errors related to npm not being able to find the file.
Solution: Manually create the package.json file in the designated directory before using the Quick Start feature to avoid these errors.Recommended threads
- Appwrite Cloud Project shutdown due to i...
My appwrite projects gets shut down saying due to inactivity, but our platform gets users everyday with many requests to database and storage. so why all of a s...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...