yarn 이 프로젝트를 설치 하는 방법 (pnp, pnpm, node-modules)
nodeLinker: pnp
장점
Extremely fast
Content-addressable store
Protects against ghost dependencies
Semantic dependency errors
Perfect hoisting optimizations
Provides a dependency tree API
Can be upgraded into zero-installs
https://yarnpkg.com/advanced/pnpapi
https://yarnpkg.com/features/caching#zero-installs
단점
Less idiomatic
IDE integrations often require SDKs
Sometimes requires packageExtensions
https://yarnpkg.com/configuration/yarnrc#packageExtensions
nodeLinker: pnpm
장점
Slower than PnP, but still very fast
Content-addressable store
Protects against some ghost dependencies
No need for IDE SDKs
단점
Symlinks aren't always supported by tools
Hard links can lead to strange behaviors
Generic dependency errors
Sometimes requires packageExtensions
nodeLinker: node-modules
장점
Perfect compatibility with the whole ecosystem
Optional support for hardlinks (nmMode)
No need for IDE SDKs
단점
Average speed
No protection against ghost dependencies
Imperfect hoisting due to the filesystem reliance
속도 비교
https://xionwcfm.tistory.com/452
추가 의견
https://engineering.ab180.co/stories/yarn-to-pnpm