vueCli 运行报错

error

如下:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! shopping@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the shopping@0.1.0 serve 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:UsersAdministratorAppDataRoaming
pm-cache\_logs2019-02-10T06_05_44_997Z-debug.log

node重新安装也没有用

解决方法

  • 删除node_modules文件夹
  • 删除package-lock.json档案
  • 运行npm install

这个方法可以解决大多数问题(一时竟没想起来)

原文地址:https://www.cnblogs.com/lenghaha/p/12577867.html