Migrate to PNPM
Guide on how to migrate to pnpm easily
1 views
-
It's recommended to use corepack, add this to
package.jsonjson..., "engines": { "node": ">=20.x", "pnpm": ">=8" } -
Run
pnpm import -
Remove
package-lock.jsonoryarn.lockfile -
(If you have pre-install or post-install script) Add
.npmrccontaining:enable-pre-post-scripts=true -
Add
.pnpm-debug.log*to.gitignorefile -
Replace
npm runoryarncommand withpnpm