启vue项目时遇到Cannot read property ‘properties‘ of undefined的错误记录

启vue项目时遇到Cannot read property ‘properties’ of undefined的错误记录

webpacak报下面的错误:
/Users/xxx/Code/js/xxx/node_modules/[email protected]@webpack-cli/bin/config-yargs.js:89
describe: optionsSchema.definitions.output.properties.path.description,
^

TypeError: Cannot read property ‘properties’ of undefined
at module.exports (/Users/xxx/Code/js/xxx/node_modules/[email protected]@webpack-cli/bin/config-yargs.js:89:48)
at Object. (/Users/xxx/Code/js/xxx/node_modules/[email protected]@webpack-dev-server/bin/webpack-dev-server.js:84:40)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
出现这个错误是因为webpack-cli版本不匹配的问题,升级到3.1.1版本或更新即可。
运行 npm i [email protected] -D
安装好之后在运行起项目就好了

你可能感兴趣的:(前端,html,web前端,javascript,vue.js,jquery)