用npm实现cnpm,即用npm访问淘宝镜像仓库

用npm实现cnpm,即用npm访问淘宝镜像仓库

替换npm仓库地址为淘宝镜像地址

命令:
npm config set registry https://registry.npm.taobao.org

查看是否更改成功:
npm config get registry

 

posted @ 2022-05-19 23:17  中国结  阅读(157)  评论(0编辑  收藏  举报