
I've been working with Appwrite cloud functions, closely following the documentation. I successfully deployed a function, but when trying to execute it, I'm getting an error that says it can't find the 'node-appwrite' module. I used 'appwrite init' to create and 'appwrite deploy function' to deploy the functions. I also tried manual deployment with the same issue. My Appwrite version is 1.4.3. I've attached screenshots here and I could use any help from the community here.

Is there anyone to help me with this?

Try npm install
in the Build Command section either when uploading the function or from the Settings tab & Redeploy.

I'm deploying using the cli. I cannot find where to do this.

either on the Settings tab, or in the appwrite.json
.

That's the appwrite.json

There is no command for building.

In the settings tab. The only options that are customizable are the ones with github.

I'm not sure of the key, but try by adding a "commands":"npm install"
.

It's not the key

I've tried deploying but still not working

can you show the appwrite.json with the commands added?

I had added it at function level

I've also tried it at project level. It's bringing another error

cli & appwrite version?

appwrite version 1.4.3

Cli version 2.0.2

Update cli to 4.1.0
which supports appwrite 1.4.x
.

after that the commands
key will be picked up by the cli.

Alright. Let me try that and get back

Sure.
Recommended threads
- User (role: guests) missing scopes (["te...
I keep getting this error: ```AppwriteException: User (role: guests) missing scopes (["teams.read"]) at new AppwriteException (/usr/local/server/src/functio...
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- My projects archived. Did not see the up...
Kindly restore project for me: 67680a26001bdf36beb8 You can delete: 678c96ba00305f78bb13 675d05040004853fb43f
