INFO Starting development server... ERROR WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.name should be a string. WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.name should be a string. -> Name of the configuration. Used when loading multiple configurations. at webpack (E:\qdyh\trunk\qdyh-web\node_modules\webpack\lib\webpack.js:31:9) at serve (E:\qdyh\trunk\qdyh-web\node_modules\@vue\cli-service\lib\commands\serve.js:135:22) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-admin-template@4.2.1 dev: `vue-cli-service serve` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-admin-template@4.2.1 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\hyx\AppData\Roaming\npm-cache\_logs\2020-04-28T08_05_55_780Z-debug.log PS E:\qdyh\trunk\qdyh-web> npm i npm WARN vue-admin-template@4.2.1 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
如果你的项目什么也没有改动,启动时突然报以上错误,那有可能是环境出现了某些问题,这时候可以删除node_modules,重新装,这时解决npm WARN vue-admin-template@4.2.1 No repository field.这个警告
INFO Starting development server... ERROR WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.name should be a string. WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.name should be a string. -> Name of the configuration. Used when loading multiple configurations. at webpack (E:\qdyh\trunk\qdyh-web\node_modules\webpack\lib\webpack.js:31:9) at serve (E:\qdyh\trunk\qdyh-web\node_modules\@vue\cli-service\lib\commands\serve.js:135:22) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-admin-template@4.2.1 dev: `vue-cli-service serve` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-admin-template@4.2.1 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\hyx\AppData\Roaming\npm-cache\_logs\2020-04-28T08_05_55_780Z-debug.log PS E:\qdyh\trunk\qdyh-web> npm i npm WARN vue-admin-template@4.2.1 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
如果你的项目什么也没有改动,启动时突然报以上错误,那有可能是环境出现了某些问题,这时候可以删除node_modules,重新装,这时解决npm WARN vue-admin-template@4.2.1 No repository field.这个警告