Appearance
使用 --registry 参数
--registry
npm install 依赖 --registry=镜像源地址
在项目根目录下创建 .npmrc 文件,添加以下内容
.npmrc
registry=镜像源地址
全局配置更改默认源
npm config set registry 镜像源