考虑是没有把需要的插件或者包都安装下来,所以就重新执行了一次 npm install ,然后根据报错信息,重新安装ajv(没见过这玩意,这个是什么呢?)
$ npm install npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. audited 33495 packages in 10.919s found 16 vulnerabilities (1 low, 10 moderate, 4 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details $ npm install ajv@^6.0.0 + ajv@6.5.2 added 6 packages from 1 contributor, updated 3 packages and audited 33501 packages in 14.673s found 16 vulnerabilities (1 low, 10 moderate, 4 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for detail
然后下一步重新执行 npm run dev 就可以运行代码了。