我对 nodemon 的警告信息感到困惑:
myproject $ nodemon index.js
26 Nov 11:14:31 - [nodemon] v1.2.1
26 Nov 11:14:31 - [nodemon] to restart at any time, enter `rs`
26 Nov 11:14:31 - [nodemon] watching: *.*
26 Nov 11:14:31 - [nodemon] starting `node index.js`
26 Nov 11:14:31 - [nodemon] watching 26,084 files - this might cause high cpu usage. To reduce use "--watch".
如果我计算所有文件,我得到:
myproject $ find . | wc -l
16628
这些文件中的绝大多数都在下面.git
,node_modules
无论如何应该被 nodemon 忽略。知道是什么原因造成的吗?
(我--watch
暂时用)