Automatically detect pnpm version
Opened this issue · 1 comments
benmccann commented
Which problem is this feature request solving?
Netlify uses pnpm 7 by default. If your project is using pnpm 8 or pnpm 9 then the deployment will fail unless you manually specify the packageManager
field. With pnpm 9, specifying the packageManager
field will then in turn cause difficulties with running the project locally for users who are not using corepack (pnpm/pnpm#8087)
Describe the solution you'd like
Look at the lockfile version to choose a compatible version of pnpm without the user needing to manually specify it in the packageManager
field just as Vercel does.
Pull request (optional)
- I can submit a pull request.
Skn0tt commented
Yes, that sounds like something we should implement. I've surfaced this internally.