运行nodemon时出现Emfile错误

时间:2013-11-20 12:31:02

标签: node.js nodemon

似乎无法启动并运行nodemon。

仅在使用节点(节点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.

有没有人有任何想法?

感谢。

1 个答案:

答案 0 :(得分:0)

如果您更新到nodemon@1.0.12(当前最新),它将警告是否有太多文件被观看(即> 25,000个文件 - 我选择的粗略任意数字)。如果你没有得到那个警告,那么它可能是你的脚本。

很高兴在http://github.com/remy/nodemon/issues/new

帮助调试(假设您使用的是最新版本)