$ node -v
v24.12.0 # Node.jsのバージョンは24.12.0が入っている
$ pnpm node
Welcome to Node.js v24.12.0. # pnpmもNode.jsのバージョンは24.12.0を使用しているはず
Type ".help" for more information.
>
$ pnpm i
WARN Ignoring broken lockfile at H:\dev\git\myapp: Lockfile H:\dev\git\myapp\pnpm-lock.yaml not compatible with current pnpm
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
This error happened while installing the dependencies of eslint-plugin-svelte@3.13.1
Your pnpm version is incompatible with "registry.npmjs.org/svelte-eslint-parser/1.4.1".
Expected version: 10.24.0 # pnpm10.x系は24.12.0系のNode.jsをサポートしているはずなのでNode.jsのバージョンと噛み合っていない可能性がある
Got: 8.15.4
This is happening because the package's manifest has an engines.pnpm field specified.
To fix this issue, install the required pnpm version globally.
To install the latest version of pnpm, run "pnpm i -g pnpm".
To check your pnpm version, run "pnpm -v".
Progress: resolved 85, reused 9, downloaded 0, added 0