--watch-preserve-output


当监视模式重新启动进程时禁用控制台的清除。

$ node --watch --watch-preserve-output test.js

Disable the clearing of the console when watch mode restarts the process.

$ node --watch --watch-preserve-output test.js