ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! metools@1.0.0 dev: `node build/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the metools@1.0.0 dev 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\think\AppData\Roaming\npm-cache\_logs\2018-03-29T02_46_46_622Z-debug.log



这个是报 的错误,原因是 webpack 的新版本的BUG,解决方法就是卸载新版本,安装老版本

命令:

npm remove webpack-dev-server
    npm install webpack-dev-server@2.9.1
    npm run dev
Logo

前往低代码交流专区

更多推荐