Egg: npm run debug异常,无法启动,但是npm run dev又是正常的。

Created on 12 Nov 2019  ·  3Comments  ·  Source: eggjs/egg

What happens?

最近npm run debug异常,见下图,但是npm run dev 和 npm run start又是正常的。
2

Mini Showcase Repository(REQUIRED)

测试仓库地址我已经提交:https://github.com/weijiatan456/egg-debug

How To Reproduce

Steps to reproduce the behavior:
1.先安装依赖npm i
2.再执行npm run debug即可复现

Context

  • Node Version: 8.11.3
  • Egg Version:2.25.0
  • Platform:window 7

Most helpful comment

All 3 comments

看报错信息是没有权限占用 5800 端口,可以看看是否有别的进程占用 5800 端口

看报错信息是没有权限占用 5800 端口,可以看看是否有别的进程占用 5800 端口

netstat -aon | findstr "5800"
查了下,果然是端口被占用了,是公司的监控程序,我无法删除。
如果想让npm run debug正常使用,怎么改这个5800端口号呢?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

popomore picture popomore  ·  3Comments

bupafengyu picture bupafengyu  ·  3Comments

lvgg3271 picture lvgg3271  ·  3Comments

kylezhang picture kylezhang  ·  3Comments

dizhifeng picture dizhifeng  ·  3Comments