1、报错如下:

vue-cli构建项目npm install报错以及解决方法

 

2、此时你执行npm run dev  / npm run build 会报错如下

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue@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:

 

3、解决方案

先执行:

npm cache clean --force

后:

npm install

转自:https://www.cnblogs.com/xxm980617/p/10744979.html

相关文章:

  • 2021-07-20
  • 2021-05-20
  • 2021-04-28
  • 2021-09-13
  • 2021-08-18
  • 2021-11-07
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2021-04-30
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案