Featured image of post npm 切换淘宝源

npm 切换淘宝源

更换源

临时切换

1
npm --registry https://registry.npm.taobao.org install express

更换默认

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

cnpm

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

国内 npm 镜像仓库

淘宝 npm 镜像

cnpmjs 镜像