# 设置私有 npm 仓库地址
npm config set registry https://registry.your-private-repo.com/
# 设置特定 Scope 私有仓库
npm config set @your-company:registry https://registry.your-private-repo.com/
# 设置身份验证 Token
npm config set //registry.your-private-repo.com/:_authToken=your-private-token
# 查看配置
npm config list
暂无评论