Skip to content
Back

Issue with functions

  • 0
  • Self Hosted
Manaberry
6 Oct, 2025, 15:47

Hi,

Appwrite (1.7.4 but 1.6.0 too) throw me this error when I upload my functions manually (cant do other way for now)

TypeScript
[14:59:40] [open-runtimes] Environment preparation finished.
[14:59:40] [open-runtimes] Build command execution started.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /usr/local/build/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/build/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2025-10-06T14_59_41_119Z-debug-0.log```

The package.json is at the root of the archive. It's there. 

What am I doing wrong?
TL;DR
Issue: Appwrite is throwing an error when uploading functions manually, even though the package.json file is in the root of the archive. Solution: Ensure that the correct path to the package.json file is specified in the build configuration.
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