DEV Community

Discussion on: The node_modules problem

Collapse
 
qm3ster profile image
Mihail Malo • Edited

PNPM does exactly this, with a global repository for the whole machine.
But regardless of whether you install with PNPM, Yarn, or even NPM, you shouldn't carry node_modules around with you, just exclude them when copying or just keep your stuff in git so that you can clone without node_modules and compiled/derived artefacts.