1. 单次使用:
npm --registry https://registry.npm.taobao.org install express
2. 永远使用:
npm config set registry https://registry.npm.taobao.org
3. 检测是否成功:
npm config get registry
4. cnpm设置:
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm / cnpm 淘宝镜像
最新推荐文章于 2023-05-26 15:19:42 发布