npm设置淘宝镜像

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

查看是否更改成功:

npm config get registry

以后安装时,依然用npm命令,但是实际是从淘宝国内服务器下载的

posted @ 2022-07-09 11:51  李国将  阅读(290)  评论(0)    收藏  举报