运行npm run build 报错,已装了webpack-cli
E:\webpack-vue>npm run build
> webpack-vue@1.0.0 build E:\webpack-vue
> webpack --config webpack.config.js
E:\webpack-vue\node_modules\webpack-cli\bin\cli.js:244
throw err;
^
Error: Cannot find module 'E:\webpack-vue\webpack.config.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (E:\webpack-vue\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (E:\webpack-vue\node_modules\webpack-cli\bin\convert-argv.js:133:13)
at requireConfig (E:\webpack-vue\node_modules\webpack-cli\bin\convert-argv.js:135:6)
at E:\webpack-vue\node_modules\webpack-cli\bin\convert-argv.js:142:17
at Array.forEach (<anonymous>)
at module.exports (E:\webpack-vue\node_modules\webpack-cli\bin\convert-argv.js:140:15)
at yargs.parse (E:\webpack-vue\node_modules\webpack-cli\bin\cli.js:241:39)
at Object.parse (E:\webpack-vue\node_modules\yargs\yargs.js:552:18)
at E:\webpack-vue\node_modules\webpack-cli\bin\cli.js:219:8
at Object.<anonymous> (E:\webpack-vue\node_modules\webpack-cli\bin\cli.js:530:3)
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 Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\webpack-vue\node_modules\webpack\bin\webpack.js:157:2)
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:191:16)
at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-vue@1.0.0 build: `webpack --config webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-vue@1.0.0 build 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\issuser\AppData\Roaming\npm-cache\_logs\2018-06-08T03_23_22_529Z-debug.log