Deploying Exited with status 126 while building your code

I m trying to deploy from git that uses the following NodeJS v20+ and Evershop, it runs locally, and when uploaded to GitHub to be deployed to Render, I keep gettings Exited with status 126, then the log shows this:

Jun 17 08:22:18 PM==> Checking out commit 460c40e265d298a23e7017b7a361a9aff3e9004c in branch main

Jun 17 08:22:25 PM==> Using Node version 20.12.2 (default)
Jun 17 08:22:31 PM==> Using Bun version 1.1.0 (default)
Jun 17 08:22:31 PM==> Running build command ‘npm install; npm run build’…
Jun 17 08:22:38 PM
Jun 17 08:22:38 PM up to date, audited 1074 packages in 7s
Jun 17 08:22:38 PM
Jun 17 08:22:38 PM151 packages are looking for funding

Jun 17 08:22:38 PM run npm fund for details

Jun 17 08:22:38 PM

Jun 17 08:22:38 PM10 vulnerabilities (4 moderate, 6 high)

Jun 17 08:22:38 PM

Jun 17 08:22:38 PMTo address issues that do not require attention, run:

Jun 17 08:22:38 PM npm audit fix

Jun 17 08:22:38 PM

Jun 17 08:22:38 PMSome issues need review, and may require choosing

Jun 17 08:22:38 PMa different dependency.

Jun 17 08:22:38 PM

Jun 17 08:22:38 PMRun npm audit for details.

Jun 17 08:22:39 PM

Jun 17 08:22:39 PM> mgdcashback@0.1.0 build

Jun 17 08:22:39 PM> evershop build

Jun 17 08:22:39 PM

Jun 17 08:22:39 PMsh: 1: evershop: Permission denied

Jun 17 08:22:39 PM==> Build failed :disappointed:

HI,

There will always be differences between environments: development mode/Local, production mode/Render, etc. These differences need to be considered and configured as required for your own app in each environment.

A Node package showing a “permission denied” error often points to you having committed the node_modules folder in your repo, which isn’t recommended.

This is mentioned in other community posts, e.g. https://community.render.com/t/sh-1-vite-permission-denied-error/21866