Skip to content
Back

deploy denied!

  • 0
  • Web
The Hat guy
7 Sep, 2025, 07:01

so i was getting this error this my website, so i setup an empty branch and started from scratch. I Installed " git clone https://github.com/appwrite/starter-for-nextjs cd starter-for-nextjs" npm install npm audit fix --force npm run dev

appwrite sites create-deployment ^ --site-id ********************^ --code "." ^ --activate ^ --build-command "npm run build" ^ --install-command "npm install" ^ --output-directory "./.next" changes in \src\lib\appwrite.js: if (typeof window !== "undefined") { client.setEndpoint("https://nyc.cloud.appwrite.io/v1"); } if (process.env.NODE_ENV !== "production") { client.setEndpoint("https://nyc.cloud.appwrite.io/v1"); } .gitignore: .git/ in the appwrite setting: Build runtime: Node-18.0

and then it finally ran.

TL;DR
Developers encountered a deployment denial due to unsupported Node engine version. They resolved it by creating a new branch, initiating with the given starter template for Next.js, making changes in appwrite.js and .gitignore files, and setting the Build runtime to Node-18.0 in appwrite settings. Finally, running the deployment command successfully created the build archive.
The Hat guy
7 Sep, 2025, 07:02

2025-09-07T05:36:35.180141523Z [05:36:35] [open-runtimes] Environment preparation started. 2025-09-07T05:36:35.191960451Z [05:36:35] [open-runtimes] Environment preparation finished. 2025-09-07T05:36:35.193029780Z [05:36:35] [open-runtimes] Build command execution started. 2025-09-07T05:36:36.414555594Z npm warn EBADENGINE Unsupported engine { 2025-09-07T05:36:36.414601282Z npm warn EBADENGINE package: 'my-app@0.1.0', 2025-09-07T05:36:36.414606498Z npm warn EBADENGINE required: { node: '18.x' }, 2025-09-07T05:36:36.414610855Z npm warn EBADENGINE current: { node: 'v22.18.0', npm: '10.9.3' } 2025-09-07T05:36:36.414615211Z npm warn EBADENGINE } 2025-09-07T05:37:07.214806853Z npm error code 127 2025-09-07T05:37:07.214874114Z npm error path /usr/local/build/node_modules/@tailwindcss/oxide 2025-09-07T05:37:07.214926228Z npm error command failed 2025-09-07T05:37:07.215212350Z npm error command sh -c node ./scripts/install.js 2025-09-07T05:37:07.215286477Z npm error Error relocating /usr/local/build/node_modules/node/bin/node: fcntl64: symbol not found 2025-09-07T05:37:07.217458912Z npm error A complete log of this run can be found in: /root/.npm/_logs/2025-09-07T05_36_35_340Z-debug-0.log 2025-09-07T05:37:12.000000000Z Build archive was not created.

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