Is there a way to specify pnpm version?

It seems to always default to pnpm 7.x, but It looks like pnpm 8.x is available in nixos
13 Replies
Percy
Percy2y ago
Project ID: 660f85e6-f8fa-467e-8c57-d93f8eb3304e
Ryan The Temp
Ryan The TempOP2y ago
660f85e6-f8fa-467e-8c57-d93f8eb3304e
Ryan The Temp
Ryan The TempOP2y ago
I've set the package version using corepack, but I still see pnpm-7_x in the nixpacks setup it seems It does seem to built successfully, but I'm not even sure now what version of pnpm is being used
Brody
Brody2y ago
is there a reason you need pnpm 8
Ryan The Temp
Ryan The TempOP2y ago
because version 8 has a better lock file standard which makes it more merge resistant
Brody
Brody2y ago
can pnpm 7 not install your deps from a pnpm 8 lockfile?
Ryan The Temp
Ryan The TempOP2y ago
It was compatible early on, but now some features don't work which break builds
Brody
Brody2y ago
are your builds broken?
Ryan The Temp
Ryan The TempOP2y ago
I get sporadic build failures related to pnpm. When there is a failure, i'm able to see this warning in the console:  WARN  Your pnpm-lock.yaml was generated by a newer version of pnpm. It is a compatible version but it might get downgraded to version 6.0
Brody
Brody2y ago
for very specfic requirements such as this i would recommend moving to a dockerfile based build
Ryan The Temp
Ryan The TempOP2y ago
ok, I'll try to just bear with it for now but, can you explain how is pnpm version derived? Is it coming from nixos packages? set in package.json engines? picked up from corepack?
Brody
Brody2y ago
im sorry i dont actually know
Want results from more Discord servers?
Add your server