Skip to content

Automatically detect pnpm version #5663

@benmccann

Description

@benmccann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions