方法一 npm cache clean --force(亲测可用) 方法二 npm config set registry https://registry.npmjs.org(清除淘宝镜像) 然后npm i