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

6.24.0 Invalid range; version range does not intersect: >=16.0.0 <16.0.0 #4134

Closed
roykho opened this issue Dec 15, 2021 · 5 comments · Fixed by #4136
Closed

6.24.0 Invalid range; version range does not intersect: >=16.0.0 <16.0.0 #4134

roykho opened this issue Dec 15, 2021 · 5 comments · Fixed by #4136
Assignees

Comments

@roykho
Copy link

roykho commented Dec 15, 2021

pnpm version:

6.24.0

Code to reproduce the issue:

When running pnpm install I am seeing the following error in .pnpm-debug.log. My node version is 16.13.1.

    "err": {
      "name": "pnpm",
      "message": "Invalid range; version range does not intersect: >=16.0.0 <16.0.0",
      "stack": "pnpm: Invalid range; version range does not intersect: >=16.0.0 <16.0.0\n    at new SingleRange (/Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113535:17)\n    at SingleRange.intersect (/Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113565:20)\n    at /Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113753:116\n    at Array.map (<anonymous>)\n    at /Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113753:81\n    at Array.map (<anonymous>)\n    at MultiRange.intersect (/Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113753:44)\n    at /Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113790:151\n    at Array.reduce (<anonymous>)\n    at intersect (/Users/user/.nvm/versions/node/v16.13.1/lib/node_modules/pnpm/dist/pnpm.cjs:113790:102)"
    }

If I downgrade to pnpm version 6.20.4, everything works.

Expected behavior:

For pnpm install to work without errors.

Actual behavior:

Install is halted when encountered error.

Additional information:

  • node -v prints: 16.13.1
  • Windows, macOS, or Linux?: macOS
@zkochan
Copy link
Member

zkochan commented Dec 15, 2021

What package has such a peer dependency? >=16.0.0 <16.0.0 seems like an invalid range

With what package can I reproduce this issue?

@roykho
Copy link
Author

roykho commented Dec 15, 2021

I am trying to hunt that down now.

@roykho
Copy link
Author

roykho commented Dec 15, 2021

Ok, this was the package and version that had the issue https://www.npmjs.com/package/@wordpress/jest-preset-default/v/6.4.0

This issue can be resolved by running the latest 7.1.3 version however I am just questioning how come it works with pnpm@6.20.4

@zkochan
Copy link
Member

zkochan commented Dec 15, 2021

I'll fix it today

@roykho
Copy link
Author

roykho commented Dec 15, 2021

Thanks for the prompt fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants