Skip to content

fix(website): add the missing @emnapi peers to package-lock.json - #54

Merged
forzagreen merged 1 commit into
mainfrom
fix/website-lockfile-npm-ci
Sep 20, 2026
Merged

forzagreen merged 1 commit into
mainfrom
fix/website-lockfile-npm-ci

Conversation

@forzagreen

Copy link
Copy Markdown
Owner

Fixes the GitHub Pages deploy, which has failed at npm ci since #53 (run):

npm error Missing: @emnapi/core@1.11.3 from lock file
npm error Missing: @emnapi/wasi-threads@1.2.3 from lock file

Cause

Astro 7 pulls in the optional @napi-rs/wasm-runtime, which has peer dependencies on @emnapi/core and @emnapi/wasi-threads. The lockfile in #53 was written by npm 11.5.1, which does not record those peers. The runner has npm 11.19.0, which treats the lockfile as out of sync without them. npm ci was checked locally in #53, but with npm 11.5.1, so it passed.

Fix

Regenerated package-lock.json with npm 11.19.0 (npx npm@11.19.0 install --package-lock-only). It adds 23 lines for the two packages; no package version changes, npm audit still reports 0 vulnerabilities.

Verification

  • reproduced the CI error locally with npx npm@11.19.0 ci, and it passes after the change
  • npm ci also still passes with npm 11.5.1
  • full npm run build from the npm 11.19.0 install: 593 pages, 678 files, same as before

npm 11.19.0 also warns that the install scripts of better-sqlite3, esbuild and fsevents are not covered by allowScripts, and does not run them. That is harmless here: better-sqlite3 13 ships a linux-x64 prebuild inside the package, and the esbuild Linux binary is its own lockfile entry. Both load without their scripts.

This workflow only runs on main, so the deploy itself is first exercised on merge.

The gh-pages build failed at `npm ci` after #53:

    Missing: @emnapi/core@1.11.3 from lock file
    Missing: @emnapi/wasi-threads@1.2.3 from lock file

The lockfile was written by npm 11.5.1, which does not record the peer
dependencies of the optional @napi-rs/wasm-runtime that Astro 7 pulls in.
The runner has npm 11.19.0, which requires them. Regenerated with
npm 11.19.0; no package version changes.
@forzagreen
forzagreen merged commit 5132900 into main Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant