# Using pnpm to optimize excessive space usage by node\_modules

**URL:** <https://forum.beginner.center/t/topic/2586>\
**Category:** 🛠工具与编程\
**Tags:** pnpm\
**Created:** [January 8, 2026, 6:03am UTC](https://forum.beginner.center/t/topic/2586 "2026-01-08T06:03:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![doggie](https://forum.beginner.center/user_avatar/forum.beginner.center/doggie/32/550_2.png) [@doggie](https://forum.beginner.center/u/doggie)\
**Post date:** [January 8, 2026, 6:03am UTC](https://forum.beginner.center/t/topic/2586/1 "2026-01-08T06:03:21Z")

</div>

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

- [https://www.youtube.com/watch?v=DKulVqlQYa8](https://www.youtube.com/watch?v=DKulVqlQYa8)
