0

似乎无法让 nodemon 启动并运行。

它仅在使用 node (node app.js) 时有效,但在使用 nodemon (nodemon app.js) 时返回以下 Emfile 错误:

20 Nov 12:26:33 - [nodemon] v0.7.10
20 Nov 12:26:33 - [nodemon] to restart at any time, enter `rs`
20 Nov 12:26:33 - [nodemon] watching: /home/ramzi/ST/swaggertrack
20 Nov 12:26:33 - [nodemon] starting `node app.js`
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Express server listening on port 80
mongo is connected
EMFILE: Watching too many files.
EMFILE: Watching too many files.
EMFILE: Watching too many files.
EMFILE: Watching too many files.

有没有人有任何想法?

谢谢。

4

1 回答 1

0

如果您更新到 nodemon@1.0.12(当前最新),它会警告是否有太多的文件被监视(即 > 25,000 个文件 - 我选择了一个粗略的任意数字)。如果您没有收到该警告,则可能是您的脚本。

很高兴在http://github.com/remy/nodemon/issues/new帮助调试(假设您使用的是最新版本)

于 2014-01-19T16:46:26.370 回答