# 查看本人的镜像npm config get registry# 更换npm 镜像(以淘宝镜像为例)npm config set registry http://registry.npm.taobao.org/#还原npm config set registry https://registry.npmjs.org/
# 删除 node_modules目录rm -rf node_modules/# 清空缓存npm cache clean#重新安装npm install
# 革除 npm 缓存npm cache clean --force