修改镜像为淘宝镜像https://npmmirror.com/

查看当前镜像地址

npm config get registry

修改镜像地址

npm config get registry https://npmmirror.com/

 当我们修改完地址可以再次输入查看镜像地址看看返回是否修改成为我们自己设置的镜像地址

posted @ 2022-11-08 16:59  web格调  阅读(394)  评论(0编辑  收藏  举报