You've already forked audiobookshelf
fix: use nodeJS <25
Errors when running with NodeJS v25:
```
> audiobookshelf
/usr/lib/audiobookshelf/node_modules/buffer-equal-constant-time/index.js:37
var origSlowBufEqual = SlowBuffer.prototype.equal;
^
TypeError: Cannot read properties of undefined (reading 'prototype')
at Object.<anonymous> (/usr/lib/audiobookshelf/node_modules/buffer-equal-constant-time/index.js:37:35)
at Module._compile (node:internal/modules/cjs/loader:1760:14)
at Object..js (node:internal/modules/cjs/loader:1892:10)
at Module.load (node:internal/modules/cjs/loader:1480:32)
at Module._load (node:internal/modules/cjs/loader:1299:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
at Module.require (node:internal/modules/cjs/loader:1503:12)
at require (node:internal/modules/helpers:152:16)
at Object.<anonymous> (/usr/lib/audiobookshelf/node_modules/jwa/index.js:1:19)
Node.js v25.2.1
```
This commit is contained in:
2
.SRCINFO
2
.SRCINFO
@@ -10,7 +10,7 @@ pkgbase = audiobookshelf
|
||||
makedepends = npm
|
||||
depends = ffmpeg
|
||||
depends = libnusqlite3
|
||||
depends = nodejs
|
||||
depends = nodejs-lts-iron
|
||||
options = !debug
|
||||
backup = etc/conf.d/audiobookshelf
|
||||
source = audiobookshelf-2.30.0.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.30.0.tar.gz
|
||||
|
||||
2
PKGBUILD
2
PKGBUILD
@@ -10,7 +10,7 @@ pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
||||
arch=("x86_64" "aarch64")
|
||||
url="https://github.com/advplyr/${pkgname}"
|
||||
license=('GPL-3.0-only')
|
||||
depends=("ffmpeg" "libnusqlite3" "nodejs")
|
||||
depends=("ffmpeg" "libnusqlite3" "nodejs-lts-iron")
|
||||
makedepends=("npm")
|
||||
backup=("etc/conf.d/${pkgname}")
|
||||
options=("!debug")
|
||||
|
||||
Reference in New Issue
Block a user