npm切换镜像源

分类: Nodejs

查看镜像源

npm config get registry

 

更换为taobao源

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

 

更换为官方镜像源

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

 

yarn换源也是一样,把npm换成yarn

 

注意 

taobao源只有下载。如果想publish,只能用官方源

标签: Nodejs

上一篇: 没有了

下一篇: 没有了

by 2023-08-07 23:49:03
篇笔记

学习笔记