常用镜像源

npm官方https://registry.npmjs.org/
yarn官方https://registry.yarnpkg.com/
淘宝源https://registry.npm.taobao.org/
tencenthttps://mirrors.cloud.tencent.com/npm/
cnpmhttps://r.cnpmjs.org/
taobaohttps://registry.npmmirror.com/
npmMirrorhttps://skimdb.npmjs.com/registry/

NPM

查询

npm get registry

设置

# 官方源
npm set registry https://registry.npmjs.org/

YARN

查询

# 官方源
yarn config get registry

设置(官方源)

yarn config get registry https://registry.yarnpkg.com
Last modification:February 22, 2024
如果觉得我的文章对你有用,请随意赞赏