npm私仓登录的方法
栏目:
NodeJs
发布时间:2024-12-05
npm 私仓登录的方法
npm login --registry 私仓URL
npm 私仓登录示例
$ npm login --registry https://npm.tides.cn
npm notice Log in on https://npm.tides.cn/
Username: front
Password:
Email: (this IS public) tides@tides.cn
Logged in as front on https://npm.tides.cn/.
查看登录用户
$ npm whoami --registry https://npm.tides.cn
front
可见,用户 “front” 已成功登录私仓服务器。
以上就是 npm 登录私仓服务器的方法,非常简单。
本文地址:https://www.tides.cn/p_node-npm-private-repository-login