npm使用淘宝镜像(npm切换淘宝镜像)

发布时间:2025-12-09 13:50:22 浏览次数:4

1.通过cnpm使用淘宝镜像:

npm install -g cnpm --registry=https://registry.npm.taobao.org

2.将npm设置为淘宝镜像:

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

3. 查看cnpm镜像设置:

cnpm config get registry 

需要做网站?需要网络推广?欢迎咨询客户经理 13272073477