agustinusnathaniel.com

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 or yarn.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 or yarn command with pnpm


BaseBookmarksT.I.L.TemplatesTimelineAnalytics

© 2024 Agustinus Nathaniel