sponsors
来源:pnpm
浏览 161
扫码
分享
2023-04-23 20:30:55
Feature Comparison
Feature | pnpm | Yarn | npm |
---|
Workspace support | ✔️ | ✔️ | ✔️ |
Isolated node_modules | ✔️ - The default | ✔️ | ✔️ |
Hoisted node_modules | ✔️ | ✔️ | ✔️ - The default |
Autoinstalling peers | ✔️ | ❌ | ✔️ |
Plug’n’Play | ✔️ | ✔️ - The default | ❌ |
Zero-Installs | ❌ | ✔️ | ❌ |
Patching dependencies | ✔️ | ✔️ | ❌ |
Managing Node.js versions | ✔️ | ❌ | ❌ |
Has a lockfile | ✔️ - pnpm-lock.yaml | ✔️ - yarn.lock | ✔️ - package-lock.json |
Overrides support | ✔️ | ✔️ - Via resolutions | ✔️ |
Content-addressable storage | ✔️ | ❌ | ❌ |
Dynamic package execution | ✔️ - Via pnpm dlx | ✔️ - Via yarn dlx | ✔️ - Via npx |
Side-effects cache | ✔️ | ❌ | ❌ |
Listing licenses | ✔️ - Via pnpm licenses list | ✔️ - Via a plugin | ❌ |
当前内容版权归
pnpm 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
pnpm .