Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对比一下 pnpm、npm、yarn 特性【热度: 399】 #636

Open
yanlele opened this issue Nov 11, 2023 · 0 comments
Open

对比一下 pnpm、npm、yarn 特性【热度: 399】 #636

yanlele opened this issue Nov 11, 2023 · 0 comments
Labels
工程化 web 项目工程化 网易 公司标签
Milestone

Comments

@yanlele
Copy link
Member

yanlele commented Nov 11, 2023

关键词:pnpm、npm、yarn 特性对比

功能 pnpm Yarn npm
工作区支持 ✔️ ✔️ ✔️
隔离的 node_modules ✔️ - 默认支持 ✔️ ✔️
提升的 node_modules ✔️ ✔️ ✔️ - 默认支持
自动安装对等依赖 ✔️ ✔️
Plug'n'Play ✔️ ✔️ - 默认支持
零安装 ✔️
修补依赖 ✔️ ✔️
管理 Node.js 版本 ✔️
有一个锁文件 ✔️ - 使用 pnpm-lock.yaml ✔️ - 使用 yarn.lock ✔️ - 使用 package-lock.json
覆盖支持 ✔️ ✔️ - 通过 resolutions 配置 ✔️
可寻址存储 ✔️
动态包执行 ✔️ - 通过 pnpm dlx ✔️ - 通过 yarn dlx ✔️ - 通过 npx
副作用缓存 ✔️
列出许可证 ✔️ - 通过 pnpm licenses list ✔️ - 通过插件
@yanlele yanlele added 工程化 web 项目工程化 网易 公司标签 labels Nov 11, 2023
@yanlele yanlele added this to the milestone Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
工程化 web 项目工程化 网易 公司标签
Projects
None yet
Development

No branches or pull requests

1 participant