fix: upgrade better-sqlite3 to v12 for Node 26 compatibility
n2-soul@9.0.9 depends on better-sqlite3@^11.10.0 which does not support Node.js 26. The V8 API changed (GetPrototype removed in favor of GetPrototypeV2), causing native compilation to fail. Upgrade to better-sqlite3@12.11.1 which supports Node 26 and has prebuilt binaries.
This commit is contained in:
@@ -13,6 +13,7 @@ RUN apt-get update && \
|
|||||||
useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \
|
useradd -m -u 1000 -g 1000 -s /usr/bin/bash opencode; \
|
||||||
npm update -g --no-fund --no-audit && \
|
npm update -g --no-fund --no-audit && \
|
||||||
npm install -g --no-fund --no-audit --allow-scripts=opencode-ai,better-sqlite3 opencode-ai@1.17.18 n2-soul@9.0.9 && \
|
npm install -g --no-fund --no-audit --allow-scripts=opencode-ai,better-sqlite3 opencode-ai@1.17.18 n2-soul@9.0.9 && \
|
||||||
|
cd /usr/local/lib/node_modules/n2-soul && npm install --no-fund --no-audit --no-save better-sqlite3@12.11.1 && cd / && \
|
||||||
npm cache clean --force && \
|
npm cache clean --force && \
|
||||||
chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/
|
chown -R 1000:1000 /usr/local/lib/node_modules/n2-soul/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user