hty7 / vue-demo

this is demo for vue
113 stars 48 forks source link

您好,安装完成所有包之后,运行npm run dev出错 #2

Open chenxiaohh opened 5 years ago

chenxiaohh commented 5 years ago

to_github@1.0.0 dev E:\git\vue-demo-mapbox-echart-gl\vue-demo-master webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

The CLI moved into a separate package: webpack-cli Please install 'webpack-cli' in addition to webpack itself to use the CLI -> When using npm: npm i -D webpack-cli -> When using yarn: yarn add -D webpack-cli module.js:549 throw err; ^

Error: Cannot find module 'webpack-cli/bin/config-yargs' 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 (internal/module.js:11:18) at Object. (E:\git\vue-demo-mapbox-echart-gl\vue-demo-master\node_modules_webpack-dev-server@3.3.1@webpack-dev-server\bin\webpack-dev-server.js:86:1) 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) npm ERR! code ELIFECYCLE

hty7 commented 5 years ago

根据提示,没有安装webpack-cli