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

🐛 BUG: Fails to install with pnpm 9.1.0 #5801

Closed
kpcyrd opened this issue May 10, 2024 · 3 comments
Closed

🐛 BUG: Fails to install with pnpm 9.1.0 #5801

kpcyrd opened this issue May 10, 2024 · 3 comments
Labels
bug Something that isn't working

Comments

@kpcyrd
Copy link

kpcyrd commented May 10, 2024

Which Cloudflare product(s) does this pertain to?

Wrangler core

What version(s) of the tool(s) are you using?

3.55.0

What version of Node are you using?

21.7.3

What operating system and version are you using?

Arch Linux

Describe the Bug

Observed behavior

pnpm install fails

Expected behavior

pnpm install shouldn't fail

Steps to reproduce

Please provide the following:

  • Install node and pnpm from Arch Linux (pnpm is on version 9.1.0)
  • Clone the workers-sdk repo and navigate to the wrangler folder
  • Run pnpm install
 WARN  Issue while reading "/build/wrangler/src/workers-sdk-wrangler-3.55.0/.npmrc". Failed to replace env in config: ${NPM_PUBLISH_TOKEN}
 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

Your pnpm version is incompatible with "/build/wrangler/src/workers-sdk-wrangler-3.55.0".

Expected version: ^8.0.0
Got: 9.1.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".

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

@kpcyrd kpcyrd added the bug Something that isn't working label May 10, 2024
@thomasgauvin
Copy link
Contributor

thomasgauvin commented May 13, 2024

+1, also encountering this with pnpm 9.1.1. Temporary fix, uninstall pnpm and install pnpm version 8:

npm install -g pnpm@^8.0.0

@penalosa
Copy link
Contributor

This should be resolved by #5809

@kpcyrd
Copy link
Author

kpcyrd commented May 22, 2024

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants