$ npm run dev
> travel@1.0.0 dev C:\Users\15873\Desktop\coding-203
> webpack-dev-server --host 0.0.0.0 --inline --progress --config build/webpack.dev.conf.js
module.js:540
throw err;
^
Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\15873\AppData\Roaming\npm\node_modules\webpack-dev-server\lib\Server.js:22:17)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! travel@1.0.0 dev: `webpack-dev-server --host 0.0.0.0 --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the travel@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\15873\AppData\Roaming\npm-cache\_logs\2018-07-29T08_56_30_158Z-debug.log
老师,运行您的这个项目报这个错误,我的机器上一直运行不出来