WebService deploy failure

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

Hi there,

I have answered this issue with the ticket you opened directly with us. The issue here is that npm install is failing. You should use && to chain commands that rely on each other. Using && means that if npm install fails, npm run build will not run.

Your build will still fail, but it won’t make it look like your npm run build failed.

The issue with npm install The failure is due to npm modules pointing to a registry other than npm.org, which can not be accessed from our build or no longer exists.

Regards,

Keith
Render Support, UTC+10 :australia:

Thanks :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.