How to close the process pop-up window after eggjs start under windows?

problem description

use eggjs to build a website backend service.
uses eggjs scaffolding egg-init to quickly build a frame.
when started with npm start under windows, a lot of pop-up boxes will appear.

related codes

the specific start configuration is as follows:

"start": "egg-scripts start --daemon --title=egg-server-mywebserver",
The pop-up window that appears

is as follows:

clipboard.png

what result do you expect?

now I want to configure these pop-up windows without displaying them after the service starts.
I read the egg-scripts configuration document and found no configuration parameters.

Jan.19,2022

it is officially stated that egg-scripts only supports some windows functions. Please see:

therefore, if you need to deploy the linux environment, it is recommended to use npm run dev locally under windows. Of course, you can also consider using pm2 to see if it can be solved.

there is another way to change -- daemon to -- no-daemon , but I don't recommend it. Because I'm not sure about the disadvantages.

Menu