关于npm仓库源的查询和切换命令

 

// 查询
npm config get registry
// 切换
npm config set registry <npm仓库源地址>

淘宝镜像:https://registry.npm.taobao.org/

升级 npm: npm i -g npm

 

posted @ 2020-08-28 14:38  呦呦且同生  阅读(1)  评论(0)    收藏  举报