npm
输入命令行
npm config set registry https://registry.npm.taobao.org
通过以下命令行验证是否成功
npm config get registry
返回结果为以下则成功
https://registry.npm.taobao.org
yarn
查看当前镜像源
yarn config get registry
切换taobao镜像
yarn config set registry https://registry.npm.taobao.org
本文介绍如何配置NPM及Yarn使用Taobao镜像源,包括设置及验证配置成功的步骤。
4769

被折叠的 条评论
为什么被折叠?



