🛠️pnpm
Also known as pnpm add, pnpm package manager
A tool that adds packages to JavaScript apps. It keeps one copy of each on your disk.
Think of it like
It is like one shared toy box for the whole street. Nobody keeps a second copy at home.
Example
Jack has 20 small projects that all use React. With pnpm, React sits on his disk once, and every project points to it.
Why it matters
Big projects pull in thousands of packages. Sharing one copy saves gigabytes and makes installs quicker.
Definition
Example code
console
$ pnpm add reactCommon mistake
Key takeaways
- 1One store. Each version is kept once per computer.
- 2Links, not copies. Projects point to the shared files.
- 3Strict. Code only gets what it listed.