npm设置镜像

切换为淘宝镜像


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

切换回原镜像

npm config set registry https://registry.npmjs.org