-1. Run `rm -r node_modules/ && npm install` to correctly update `package-lock.json`. I don't fully understand why this is necessary, but it appears to be a workaround for an npm bug when developing on an architecture different from the deployment architecture. The workaround is described [here in the github issue for the bug](https://github.com/npm/cli/issues/4828#issuecomment-1145683953). We appear to only have become vulnerable to this bug when I added `sharp` as a dependency, and the issue is also referenced [here on sharp's website](https://sharp.pixelplumbing.com/install/#npm-v10). ¯\_(ツ)_/¯
0 commit comments