Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pnpm: What is purpose of `node_modules` in .pnpm?

Tags:

npm

pnpm

I've been thinking about migration from npm to pnpm.

Before starting to migrate, I first saw documentation(pnpm motivation).

There are hard link packages that point .pnpm store(Centralized) in .pnpm, and within node_modules, they point each package using symbolic links.

I removed node_modules in my project, then, I reinstalled packages using pnpm. Everything seemed as I expected, except there was a node_modules in .pnpm.

What's the purpose of the node_modules in .pnpm?

What packages are there?

like image 429
seongkuk han Avatar asked Nov 29 '25 17:11

seongkuk han


1 Answers

To ensure sub dependency(dependency's dependency)can resolve each other,in case some package's dependency declaration forget include some sub dependency

like image 137
HouMingjie Avatar answered Dec 01 '25 11:12

HouMingjie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!