Skip to content

[BUG] npm error Exit handler never called! in next.js app #8404

@amirmmolazemi

Description

@amirmmolazemi

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Hi!

I'm currently using the latest LTS version of Node.js (Node: 22.17.0 & npm: 10.9.2) and I'm getting an error when trying to build my Next.js v15.3.3 app project.

I've already tried:

  1. Deleting the package-lock.json file
  2. Removing the node_modules folder
  3. Cleaning the cache using:
npm cache clean --force

Here's the error I get when trying to build my app:

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: /root/.npm/_logs/2025-06-30T18_01_53_207Z-debug-0.log

Error: `npm ci` command failed.

You can also try deleting your `package-lock.json` file and run `liara deploy` again.

Expected Behavior

this is my expected Behavior

> next build

   ▲ Next.js 15.3.3

   Creating an optimized production build ...
   Linting and checking validity of types ...
   Collecting page data ...
   Finalizing page optimization ...
   Collecting build traces ...


Steps To Reproduce

Environment

  • npm: 10.9.2
  • Node.js: 22.17.0
  • OS Name: windows 11 Pro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy