Using pnpm to optimize excessive space usage by node_modules

When using npm alone, each workspace will have its own node_modules folder storing various Node packages for that specific project. Even if the same package is used, multiple projects require it to be downloaded multiple times.

With pnpm, these Node packages can be shared—after downloading once, other projects can reference the same package.

Tutorial