步骤:
1.没有安装npm,先到node官网下载安装node.js(自带npm)
2.按win+r, 输入cmd,打开dos命令
3.查看当前镜像源 npm get registry
4. 输入npm config set registry xxx,比如百度镜像源:npm config set registry https://registry.npm.taobao.org
5. 在查看当前镜像源 npm get registry
6. 最后在进行自己项目的操作
npm切换到百度镜像源
最新推荐文章于 2024-04-27 16:14:12 发布