2.0版本启动命令是 cnpm run dev

3.0版本启动命令是:cnpm run serve

用cnpm run dev启动3.0版本的项目,会报这样的错误

npm ERR! missing script: service
npm ERR!
npm ERR! Did you mean this?
npm ERR!     serve

npm ERR! A complete log of this run can be found in:

原因是项目根目录下的package.json文件中没有dev启动方式

3.0以上版本的vue-cli 创建的vue项目启动方式

相关文章:

  • 2022-02-18
  • 2021-10-01
  • 2022-12-23
  • 2021-07-13
  • 2021-11-28
  • 2021-06-13
  • 2021-05-24
  • 2021-07-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-03-01
  • 2022-01-09
  • 2021-11-26
相关资源
相似解决方案