npm通过--registry来指定安装源

命令:

npm install pkg --registry https://registry.npmmirror.com

pkg为包名称

淘宝npm镜像站点:
https://registry.npmmirror.com

posted @ 2023-02-05 16:58  ziff123  阅读(135)  评论(0编辑  收藏  举报