$ npm run build-demo
> @sabaki/shudan@1.3.10 build-demo /home/coder/Workspace/Shudan
> webpack --entry ./demo/main.js -o ./demo/bundle.js --progress --mode production
/home/coder/Workspace/Shudan/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 (/home/coder/Workspace/Shudan/node_modules/webpack-cli/bin/config-yargs.js:89:48)
at /home/coder/Workspace/Shudan/node_modules/webpack-cli/bin/webpack.js:60:27
at Object.<anonymous> (/home/coder/Workspace/Shudan/node_modules/webpack-cli/bin/webpack.js:515:3)
at Module._compile (internal/modules/cjs/loader.js:805:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
at Module.load (internal/modules/cjs/loader.js:672:32)
at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
at Function.Module._load (internal/modules/cjs/loader.js:604:3)
at Module.require (internal/modules/cjs/loader.js:711:19)
at require (internal/modules/cjs/helpers.js:14:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @sabaki/shudan@1.3.10 build-demo: `webpack --entry ./demo/main.js -o ./demo/bundle.js --progress --mode production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @sabaki/shudan@1.3.10 build-demo 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! /home/coder/.npm/_logs/2019-04-18T04_18_49_169Z-debug.log
直接编译
更新
修改package.json到v3.3.0后解决