开发环境运行项目即npm run dev的时候是正常的,但是npm start会启动失败,最可能的原因是因为npm start启动使用egg-scripts机制启动,对于运行中遇到error日志就会中断进程,方便发现问题,有时构建过程中的node warnning会认为是stderr被捕获到,所以npm start会构建中断,解决方案是忽略掉stderr中断机制,在原来命令基础上添加--ignore-stderr即可

egg-scripts start --port=7001 --daemon --title=egg-manage --ignore-stderr

  

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-08-04
  • 2022-03-02
  • 2022-01-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-04-14
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案