-
-
Notifications
You must be signed in to change notification settings - Fork 937
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
pnpm install with optional peer dependencies gives error when there is no lockfile #5388
Comments
After investigating further, it looks like |
I'm running into a similar issue. I'll tack onto this instead of opening a separate issue. pnpm version:7.26.0 Code to reproduce the issue:npx degit antfu/vitesse-webext my-webext
cd my-webext
rm pnpm-lock.yml
pnpm i Expected behavior:
Actual behavior:
Click to expand
Additional information:
shamefully-hoist=true
auto-install-peers=true I normally wouldn't delete the pnpm lockfile right off the bat, but there is a separate issue with one of the packages 404ing (see 'problem 1' here), and the solution suggested was to delete the lockfile and run I don't think adding Link to antfu/vitesse-webext |
pnpm version: 7.12.1
Code to reproduce the issue:
Expected behavior:
The
pnpm add
andpnpm install
should show the same warning for the missing optional peer dependencyActual behavior:
pnpm add
shows the warning for the optional peer dependency (as above)pnpm install
shows an error for the optional peer dependency (as below)Additional information:
node -v
prints: 16.17.0We wouldn't normally be deleting the lockfile but it seems like it is part of the workflow of Renovate using pnpm. Renovate is failing for us due to missing this optional peer dependency.
The text was updated successfully, but these errors were encountered: