有时候运行npm指令需要在不同的源内,这就涉及到切源
1.查看当前源:npm config get registry
2.切源操作:npm config set registry +所需源地址 如:淘宝镜像 https://registry.npm.taobao.org