wasm-runtime 1.1.2 breaks `npm ci`
Author: ctalibard-skCreated Mar 31, 2026Updated Aug 11, 2026
The move of @emnapi/* to peerDependencies has broken NPM-based builds:
"peerDependencies": {
"@emnapi/core": "^1.7.1",
"@emnapi/runtime": "^1.7.1"
},When the package-lock.json is created on one platform (in my case macOS) but the CI server is running linux, npm ci breaks because @emnapi/core, and @emnapi/runtime are missing from the package-lock.json as they are not needed on macOS.
I admit that it's time we moved away from vanilla NPM, but that's a lot of work. Is there any chance you could put them back in dependencies?
Source: napi-rs/napi-rs