[Bug]: Server build fails with npm 11.6.2 and newer #3127

Open
opened 2026-04-25 00:13:48 +02:00 by adam · 1 comment
Owner

Originally created by @ammgws on GitHub (Nov 30, 2025).

What happened?

When attempting to build manually, the server build fails:

> npm ci
...
[3:41:11 pm] ✔ Generated route "/oops"
[3:41:11 pm] ✔ Generated route "/upload"
[3:41:11 pm] ✔ Generated route "/"
[3:41:11 pm] ✔ Client-side fallback created: 200.html
npm error code EUSAGE
npm error
npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm error
npm error Missing: fsevents@2.3.3 from lock file

What did you expect to happen?

Build completes without error

Steps to reproduce the issue

  1. Clone repository
  2. Run npm ci

Audiobookshelf version

v2.30.0

How are you running audiobookshelf?

Built from source

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs


Additional Notes

No response

Originally created by @ammgws on GitHub (Nov 30, 2025). ### What happened? When attempting to build manually, the server build fails: ```sh > npm ci ... [3:41:11 pm] ✔ Generated route "/oops" [3:41:11 pm] ✔ Generated route "/upload" [3:41:11 pm] ✔ Generated route "/" [3:41:11 pm] ✔ Client-side fallback created: 200.html npm error code EUSAGE npm error npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm error npm error Missing: fsevents@2.3.3 from lock file ``` ### What did you expect to happen? Build completes without error ### Steps to reproduce the issue 1. Clone repository 2. Run `npm ci` ### Audiobookshelf version v2.30.0 ### How are you running audiobookshelf? Built from source ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:13:48 +02:00
Author
Owner

@ammgws commented on GitHub (Nov 30, 2025):

Bisected this to npm issue - OK in 11.6.1 but NG in 11.6.2+

Looks like this issue: https://github.com/npm/cli/issues/8726

@ammgws commented on GitHub (Nov 30, 2025): Bisected this to npm issue - OK in 11.6.1 but NG in 11.6.2+ Looks like this issue: https://github.com/npm/cli/issues/8726
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3127