npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] 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!    D:\Program Files\nodejs\node_cache\_logs\2018-08-01T09_05_17_312Z-debug.log

原因:这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好。

第一步:npm uninstall webpack-dev-server

第二步:npm install [email protected]

最后:npm run dev

VUE新建项目初始化时 npm run dev 报错

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2021-12-03
  • 2021-10-15
  • 2021-05-27
  • 2021-04-17
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2021-04-08
  • 2021-09-28
  • 2021-10-05
相关资源
相似解决方案