执行 npm start,提示Cannot read property 'properties' of undefined

执行 npm start,提示Cannot read property 'properties' of undefined
解决方案:升级webpack-cli:npm i [email protected] -D

/eostoolkit$ npm start

> [email protected] start /github_sourcecode/eostoolkit
> webpack-dev-server --config webpack.config.js --mode development

/eostoolkit/node_modules/webpack-cli/bin/config-yargs.js:89
                describe: optionsSchema.definitions.output.properties.path.description,
                                                           ^

TypeError: Cannot read property 'properties' of undefined
    at module.exports (/eostoolkit/node_modules/webpack-cli/bin/config-yargs.js:89:48)
    at Object. (/eostoolkit/node_modules/webpack-dev-server/bin/webpack-dev-server.js:84:40)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

npm ERR! Linux 4.15.0-36-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `webpack-dev-server --config webpack.config.js --mode development`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'webpack-dev-server --config webpack.config.js --mode development'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the eos-toolbox package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --config webpack.config.js --mode development
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs eos-toolbox
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls eos-toolbox
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!    /eostoolkit/npm-debug.log

你可能感兴趣的:(执行 npm start,提示Cannot read property 'properties' of undefined)