本文最后更新于 292 天前 ,文中信息可能已经过时。如有问题请在评论区留言。
语法
执行以下命令配置镜像库:(将以下 your_npm_registry_url
替换为你的私有仓库路径或国内镜像源路径)
shell
|
|
执行以下命令,返回 your_npm_registry_url
,则配置成功:
shell
|
|
配置有密码的私有仓库
执行以下命令登录私有仓库:
shell
|
|
按提示输入账号/密码即可。
国内镜像源
腾讯
shell
|
|
阿里
shell
|
|
华为
shell
|
|
执行以下命令配置镜像库:(将以下 your_npm_registry_url
替换为你的私有仓库路径或国内镜像源路径)
|
|
执行以下命令,返回 your_npm_registry_url
,则配置成功:
|
|
执行以下命令登录私有仓库:
|
|
按提示输入账号/密码即可。
|
|
|
|
|
|
本文为原创内容,版权归作者所有。如需转载,请在文章中声明本文标题及链接。
文章标题:npm 配置镜像仓库 —— tofuwine
文章链接:https://tofuwine.github.io/posts/a3d38191/
许可协议:CC BY-NC 4.0
感谢您的耐心阅读!来选个表情,或者留个评论吧!