3 ms·
If you're having trouble with node_modules size, do yourself a favour and try PNPM[0]. It's another npm/yarn. It installs each npm module into a local store fir
by zebracanevra 5y ago
If you're having trouble with node_modules size, do yourself a favour and try PNPM[0].
It's another npm/yarn. It installs each npm module into a local store first, then creates a bunch of hardlinks and symlinks in your project's node_modules. End result, no matter how many duplicate dependencies you have installed (for example this AWS SDK), you only store one of them on your disk. Plus, it's super fast.
[0] https://pnpm.io/ https://pnpm.io/