Hi all,
since some time I have started getting deployment failures due to npm dependencies missing.
I haven’t changed anything in the settings and didn’t add any new npm packages in my package.json file.
My build command is: npm install; npm run build
My start command is: npm run start
and this is the error output:
==> Checking out commit 6f8ca0fa1c28f3dc456a14b1a424c01bc942493e in branch main
==> Downloading cache...
==> Transferred 247MB in 8s. Extraction took 4s.
==> Requesting node version ^18
==> Using Node version 18.20.3 via /opt/render/project/src/package.json
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Using Bun version (default)
==> Docs on specifying a bun version: https://render.com/docs/bun-version
==> Running build command 'npm install; npm run build'...
npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error <https://github.com/npm/cli/issues>
npm error A complete log of this run can be found in: /opt/render/.cache/_logs/2024-06-16T10_49_09_667Z-debug-0.log
> web-service@3.5.0 build
> next build
sh: 1: next: not found
==> Build failed 😞
==> Common ways to troubleshoot your deploy: https://docs.render.com/troubleshooting-deploys