本文主要是介绍【npm】npm镜像源及命令,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
淘宝镜像源
npm config set registry https://registry.npm.taobao.org (旧版,已到期)
淘宝中国镜像源
npm config set registry https://registry.npmmirror.com (新版)
腾讯云镜像源
npm config set registry http://mirrors.cloud.tencent.com/npm/
华为云镜像源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
阿里云 NPM 镜像源:
https://npm.aliyun.com
官方默认全局镜像源:
npm config set registry https://registry.npmjs.org
检查当前镜像
npm config get registry
这篇关于【npm】npm镜像源及命令的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!