详细步骤如下 1、删除node_modules,可以使用rimraf rimraf node_modules 2、删除 package-lock.json 3、清楚缓存 npm cache clean -f 4、重新安装依赖 npm install