测试镜像源
bash
ping registry.npmmirror.com
安装pnm
bash
npm install -g pnpm
切换镜像源
npm
bash
npm config set registry https://registry.npmmirror.com
pnpm
bash
pnpm config set registry https://registry.npmmirror.com