是因为node_modules有意外改动,导致依赖库不完整。 解决:1.删除项目下的node_modules,在你的项目目录下 重新执行npm install,这会重新生成node_modules, 执行npm run build , npm run dev. 相关文章: