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

npx update-browserslist-db@latest fails with ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF #823

Open
ilyakamens opened this issue Mar 22, 2024 · 1 comment

Comments

@ilyakamens
Copy link

When I run npx update-browserslist-db@latest, I encounter the following error:

image

Environment information (macOS 14.1.2 (23B2091)):

$ node --version
v16.14.2

$ pnpm --version
8.10.2

$ npx --version
8.5.0

All references to browserslist in pnpm-lock.yaml:

image

Running pnpm install doesn't fix the issue, and running pnpm up caniuse-lite only updates pnpm-lock.yaml (perhaps expected) and results in a surprising number of unrelated changes that also breaks my application:

 pnpm-lock.yaml | 4531 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 4194 insertions(+), 337 deletions(-)

Is there any other information I can provide that'd be helpful? I apologize if I should have opened this issue elsewhere.

@ai
Copy link
Member

ai commented Mar 22, 2024

Very likely that you have a specific settings in npm. I had no experience with it (if you know how to improve our script, please send PR).

We cover only simple case.

Note, that you don’t need this tool for an update. You can use any other way to update nested dependencies to update caniuse-lite, which will fit your environment and settings.

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

2 participants