包管理器
JavaScript 包管理工具。
主流包管理器
npm
- 简介: Node.js 默认包管理器
- 链接: https://www.npmjs.com/
- 特点:
- 最大的包注册表
- Node.js 内置
- 生态成熟
- 工作区支持
pnpm
- 简介: 快速、节省磁盘空间的包管理器
- 链接: https://pnpm.io/
- 特点:
- 节省磁盘空间(硬链接)
- 速度快
- 严格的依赖管理
- Monorepo 支持优秀
Yarn
- 简介: 快速、可靠、安全的依赖管理
- 链接: https://yarnpkg.com/
- 特点:
- 离线模式
- 确定性安装
- 工作区支持
- Plug'n'Play 模式
Bun
- 简介: 极速的 JavaScript 运行时和包管理器
- 链接: https://bun.sh/
- 特点:
- 速度极快
- 内置打包器
- 兼容 npm 包
- 一体化工具
包发布工具
np
- 简介: 更好的 npm publish
- 链接: https://github.com/sindresorhus/np
- 特点:
- 交互式发布
- 自动化检查
- 版本管理
release-it
- 简介: 自动化版本发布
- 链接: https://github.com/release-it/release-it
- 特点:
- 版本号管理
- Changelog 生成
- Git 标签
- npm 发布
semantic-release
- 简介: 自动化语义化版本发布
- 链接: https://semantic-release.gitbook.io/
- 特点:
- 完全自动化
- 语义化版本
- 发布说明生成
版本管理
Changesets
- 简介: Monorepo 版本管理工具
- 链接: https://github.com/changesets/changesets
- 特点:
- 适合 Monorepo
- 变更日志管理
- 协作友好
Lerna
- 简介: Monorepo 管理工具
- 链接: https://lerna.js.org/
- 特点:
- 多包管理
- 版本发布
- 依赖管理
依赖分析
npm-check-updates
- 简介: 升级 package.json 依赖
- 链接: https://github.com/raineorshine/npm-check-updates
- 特点:
- 批量更新依赖
- 交互式选择
- 安全检查
depcheck
- 简介: 检查未使用的依赖
- 链接: https://github.com/depcheck/depcheck
- 特点:
- 找出未使用的包
- 检查缺失的依赖
npm-check
- 简介: 检查过期、错误、未使用的依赖
- 链接: https://github.com/dylang/npm-check
- 特点:
- 交互式更新
- 依赖分析
- 可视化界面
私有仓库
Verdaccio
- 简介: 轻量级私有 npm 代理
- 链接: https://verdaccio.org/
- 特点:
- 易于部署
- 缓存代理
- 私有包托管
npm Enterprise
- 简介: npm 企业版
- 链接: https://www.npmjs.com/products/enterprise
- 特点:
- 私有注册表
- 安全审计
- 企业支持
镜像源
nrm
- 简介: npm 源管理器
- 链接: https://github.com/Pana/nrm
- 特点:
- 快速切换源
- 测试源速度
- 自定义源
yrm
- 简介: Yarn 源管理器
- 链接: https://github.com/i5ting/yrm
- 特点: 类似 nrm,支持 Yarn
常用镜像源
淘宝镜像
bash
https://registry.npmmirror.com/腾讯云镜像
bash
https://mirrors.cloud.tencent.com/npm/华为云镜像
bash
https://mirrors.huaweicloud.com/repository/npm/