# npm查看源地址 npm config get registry # 更换npm源为淘宝镜像 npm config set registry https://registry.npmmirror.com # 恢复为默认源 npm config set registry https://registry.npmjs.org