MK (fengmk2)
MK (fengmk2)
可以参考 https://github.com/eggjs/egg-schedule ,封装一个 mq 的 Subscription 编程界面
你的错误堆栈是 npx 和 debug 报错,还没到 egg。
@beary 厉害,我们尽快看看。
请提供一个最小复现代码库。
https://github.com/eggjs/egg-init/blob/master/lib/init_command.js#L47 @ziyanwl 可以看看你的环境变量 可以打印一下 ```bash node -p 'process.env.http_proxy || process.env.HTTP_PROXY' ```
可以参考 egg-cluster 的实现,自定义一个启动器,覆盖 startMasterSocketServer 默认实现即可。 https://github.com/eggjs/egg-cluster/blob/master/lib/master.js#L234
https://github.com/eggjs/create-egg?tab=readme-ov-file#usage 按这里的说明是 ```bash npm init egg showcase --type=simple ```
初步思路是通过 egg-bin postinstall 自动设置 .vscode/settings.json 里面 `json.schemas` ```json { "json.schemas": [ { "fileMatch": [ "config/config.json", "config/config.*.json" ], "url": "https://eggjs.org/config.schema" } ] } ```
https://json-schema.org/learn/getting-started-step-by-step.html
https://code.visualstudio.com/docs/languages/json