My package.json build script is tsc and function's commands are npm install && npm run build. Here are the deployment logs:
TypeScript
2025-06-19T15:14:36.849527828Z [15:14:36] [open-runtimes] Environment preparation started.
2025-06-19T15:14:36.968371251Z [15:14:36] [open-runtimes] Environment preparation finished.
2025-06-19T15:14:36.969603016Z [15:14:36] [open-runtimes] Build command execution started.
2025-06-19T15:14:38.835148928Z up to date, audited 6 packages in 2s
2025-06-19T15:14:38.836267869Z found 0 vulnerabilities
2025-06-19T15:14:39.269966767Z > main@1.0.0 build
2025-06-19T15:14:39.269972078Z > tsc
2025-06-19T15:14:39.275731379Z sh: tsc: Permission denied
2025-06-19T15:14:44.000000000Z Build archive was not created.
Should I make the function run sudo npm run build instead?
TL;DR
The `tsc` command is resulting in a "Permission denied" error during deployment. Running the function with `sudo npm run build` may solve this.Recommended threads
- Hi Appwrite Support Team,My project has ...
Details: Project ID: 69a69f6f00113ed0e8e4 Region: SFO (sfo.cloud.appwrite.io) Error Response: Affected: ALL endpoints — Functions, Databases, Storage, Health, ...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...