flood icon indicating copy to clipboard operation
flood copied to clipboard

failed to start with nodejs 25

Open solsticedhiver opened this issue 2 months ago • 5 comments

Whe running flood 4.11.0 on archlinuxarm (using aur nodejs-flood package), one gets:

/usr/lib/node_modules/flood/node_modules/buffer-equal-constant-time/index.js:37
 var origSlowBufEqual = SlowBuffer.prototype.equal;
                                   ^
 TypeError: Cannot read properties of undefined (reading 'prototype')
     at node_modules/buffer-equal-constant-time/index.js (/usr/lib/node_modules/flood/node_modules/buffer-equal-constant-time/index.js:37:35)
     at __require (/usr/lib/node_modules/flood/dist/index.js:13:50)
     at node_modules/jwa/index.js (/usr/lib/node_modules/flood/node_modules/jwa/index.js:1:19)
     at __require (/usr/lib/node_modules/flood/dist/index.js:13:50)
     at node_modules/jws/lib/sign-stream.js (/usr/lib/node_modules/flood/node_modules/jws/lib/sign-stream.js:4:11)
     at __require (/usr/lib/node_modules/flood/dist/index.js:13:50)
     at node_modules/jws/index.js (/usr/lib/node_modules/flood/node_modules/jws/index.js:2:18)
     at __require (/usr/lib/node_modules/flood/dist/index.js:13:50)
     at node_modules/jsonwebtoken/decode.js (/usr/lib/node_modules/flood/node_modules/jsonwebtoken/decode.js:1:11)
     at __require (/usr/lib/node_modules/flood/dist/index.js:13:50)
 Node.js v25.0.0

solsticedhiver avatar Oct 27 '25 23:10 solsticedhiver

https://github.com/auth0/node-jwa/issues/51

trim21 avatar Oct 28 '25 00:10 trim21

looks like you need to upgrade or downgrade Node.js

trim21 avatar Oct 28 '25 00:10 trim21

sorry I didn't notice the packager is @jesec

trim21 avatar Oct 28 '25 00:10 trim21

CI is doing AUR as well, so any adjustment can be made there if needed.

jesec avatar Oct 28 '25 01:10 jesec

https://github.com/jesec/flood/blob/master/distribution/archlinux/flood/PKGBUILD

if there is a nodejs-lts package for arch I suggest you to use it and send a PR

trim21 avatar Oct 28 '25 01:10 trim21