运行npm run dev

img


ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options has an unknown property 'overlay'. These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }

cnpm 装不了就 yarn装

估计是你环境变量设置的问题 看下cnpm 装哪里了 或者全局的cmd打开 看下cnpm -v 是什么

重新删除node_modules,用淘宝镜像来重新下载依赖包。