Skip to content
Back

Is Quick Start for function creation working?

  • 0
  • Tools
  • Functions
  • Cloud
Los Feliz
30 Jun, 2025, 18:28

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.
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