node.jsgithub-actionsforgejo

NodeJS 22.13.1-r0 breaks Forego action on Alpine container


I am using the asciidoctor/docker-asciidoctor:1.82 container which is built on top of alpine:3.21.2.

With this I built a Forgejo action where I install node into the container using apk add nodejs npm.

Once the GitHub Checkout Action starts I receive the following set of errors:

Error relocating /usr/bin/node: sqlite3session_attach: symbol not found
Error relocating /usr/bin/node: sqlite3changeset_apply: symbol not found
Error relocating /usr/bin/node: sqlite3session_create: symbol not found
Error relocating /usr/bin/node: sqlite3session_changeset: symbol not found
Error relocating /usr/bin/node: sqlite3session_patchset: symbol not found
Error relocating /usr/bin/node: sqlite3session_delete: symbol not found

These errors have started to occur since apk install nodes 22.13.1-r0. Before the issue occurred (without any changes to the build scripts)nodejs 22.11.0-r1 used to be installed.

I cannot install the previous version of nodejs anymore, because it appears to be unavailable on the repository.

What can I do to fix this issue?


Solution

  • try apk upgrade before apk add nodejs