DEV Community

Discussion on: How to migrate from yarn / npm to pnpm

Collapse
 
james_palermo_bc208e463e4 profile image
James Palermo

Can pnmp be set up to allow fall back to npm, say if someone on a locked down/limited device (IoT or something) wants to pull a repo?

Collapse
 
andreychernykh profile image
Andrei Chernykh • Edited

I think it could. Just remove "preinstall": "npx only-allow pnpm",, so the person working with the repo could use npm to install dependencies.
And also, in that case it would make sense to keep packages-lock.json as well.

Note: these are my assumptions. I'm not a maintainer of pnpm and may not know some pitfalls.