non-deterministic hoisted node_modules/.pnpm/node_modules #7070
Unanswered
rrosenshain-sc
asked this question in
Q&A
Replies: 2 comments
-
I have a repro example: https://github.com/swang9-sc/pnpm-demo/tree/main Would been great to at least have a configurable choice somehow - like "lowest/highest" so at least it's deterministic |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm also seeing this, on pnpm@8.15.1. And i can reproduce it with your demo repo. I don't understand how this isn't considered a critical issue by the pnpm team. in my own repo i am using pnpm i --frozen-lockfile and its still non deterministic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using pnpm with a monorepo and seeing weird inconsistencies with how
node_modules/.pnpm/node_modules
are resolved.I also noticed
modules.yaml
is showing different versions in theI don't have a simple repro yet but basically I pull my branch, run
pnpm i
, everything works. I then make a change to package.json manually and then runpnpm i
again (I think any change to pnpm related files would cause it) and the modules.yaml files is created differently and the node_modules gets hoisted differently.I'm using the default .npmrc hoisting config
Some examples of changes in the
modules.yaml
file:Any idea why it might be happening?
Beta Was this translation helpful? Give feedback.
All reactions