see https://pnpm.io/installation
$ pnpm --versioncorepack will NOT be distributed with Node.js v25>= https://nodejs.org/docs/latest-v24.x/api/corepack.html
- Remove
node_modules - [Optional] Create
pnpm-workspace.yamlif you use workspaces - Run
pnpm import - Remove
package-lock.json - Run
pnpm install - Replace all
npm run xxxcommands topnpm run xxx
https://pnpm.io/package_json#engines
If you use the field, you should change it.
npm ci alternative
$ CI=1 pnpm install
$ pnpm install --frozen-lockfilehttps://pnpm.io/continuous-integration#github-actions
https://pnpm.io/continuous-integration#gitlab-ci
- User-defined
preandpostscripts aren't run https://pnpm.io/cli/run#differences-with-npm-run
W