Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pnpm 9: ERR_PNPM_UNSUPPORTED_ENGINE #398

Open
jpdreamos opened this issue Oct 17, 2024 · 0 comments
Open

Allow pnpm 9: ERR_PNPM_UNSUPPORTED_ENGINE #398

jpdreamos opened this issue Oct 17, 2024 · 0 comments

Comments

@jpdreamos
Copy link

$ pnpm install -r

ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

Your pnpm version is incompatible with "/Users/madhava/Sites/dream/sdk".

Expected version: ^8.0.0
Got: 9.4.0

This is happening because the package's manifest has an engines.pnpm field specified.
To fix this issue, install the required pnpm version globally.

To install the latest version of pnpm, run "pnpm i -g pnpm".
To check your pnpm version, run "pnpm -v".

pnpm installation defaults to version 9 since April 2024. I don't want to have to downgrade to 8, so support for 9 out of the box would be nice.

I was able to work around this by making this change to the root package.json:

  "engines": {
    "node": ">=18.0.0",
    "npm": "^8.0.0",
    "pnpm": "^9.0.0"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant