Migrate to PNPM
Guide on how to migrate to pnpm easily
58 views
-
It's recommended to use corepack, add this to
package.json
json
..., "engines": { "node": ">=20.x", "pnpm": ">=8" }
-
Run
pnpm import
-
Remove
package-lock.json
oryarn.lock
file -
(If you have pre-install or post-install script) Add
.npmrc
containing:enable-pre-post-scripts=true
-
Add
.pnpm-debug.log*
to.gitignore
file -
Replace
npm run
oryarn
command withpnpm