说明全局脚手架和本地脚手架版本不一样 解决方法: 执行以下命令将npm升级到最新版本 npm install npm@latest -g 删除本地依赖包 rm -rf node_modules 执行以下命令清理缓存 npm cache clean --force 安装依赖 npm install