egg npm run start 启动异常的慢

bsxbgnwa  于 2022-10-27  发布在  其他
关注(0)|答案(3)|浏览(393)

[egg-scripts] Wait Start: 186...
[egg-scripts] Wait Start: 187...
[egg-scripts] Wait Start: 188...
[egg-scripts] Wait Start: 189...
[egg-scripts] Wait Start: 190...
[egg-scripts] Wait Start: 191...
[egg-scripts] Wait Start: 192...
[egg-scripts] Wait Start: 193...
[egg-scripts] egg started on http://127.0.0.1:7001

启动花了将近200秒,每次都如此

nkkqxpd9

nkkqxpd91#

检查 run/application_timing.json 文件,还有启动日志 master-stdout ,看看是哪个插件启动慢

pxyaymoc

pxyaymoc2#

有更多信息吗?

kcwpcxri

kcwpcxri3#

我这边也复现了,启动花费时间长。
基本就是使用egg 初始化就会有这个问题。
依赖部分如下:

"dependencies": {
    "@eggjs/http-proxy": "^1.1.0",
    "egg": "^2.15.1",
    "egg-scripts": "^2.11.0"
  },
  "devDependencies": {
    "autod": "^3.0.1",
    "autod-egg": "^1.1.0",
    "egg-bin": "^4.11.0",
    "egg-ci": "^1.11.0",
    "egg-mock": "^3.21.0",
    "eslint": "^5.13.0",
    "eslint-config-egg": "^7.1.0"
  },

相关问题