0
点赞
收藏
分享

微信扫一扫

外包干了一个月,忘记Git怎么使用了...

秦瑟读书 3小时前 阅读 0

NPM

1. 查询当前镜像

npm get registry 

2. 设置为淘宝镜像

npm config set registry https://registry.npm.taobao.org/        (旧地址,不再维护,可以使用)
npm config set registry https://registry.npmmirror.com/         (最新地址)

3. 设置为官方镜像

npm config set registry https://registry.npmjs.org/

YARN(同理)

1. 查询当前镜像

yarn config get registry

2. 设置为淘宝镜像

yarn config set registry https://registry.npm.taobao.org/        (旧地址)
yarn config set registry https://registry.npmmirror.com/         (最新地址)

3. 设置为官方镜像

yarn config set registry https://registry.yarnpkg.com
举报

相关推荐

0 条评论