简体   繁体   English

Emfile错误正在运行nodemon

[英]Emfile error running nodemon

Can't seem to get nodemon up and running. 似乎无法启动nodemon并使其运行。

It works when using just node (node app.js) but when using nodemon (nodemon app.js) the following Emfile error is returned: 它仅在使用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.

Has anyone got any thoughts? 有人有想法吗?

Thanks. 谢谢。

If you update to nodemon@1.0.12 (currently latest) it will warn out if there's too many files being watched (ie > 25,000 files - a rough arbitrary number I chose). 如果您更新到nodemon@1.0.12(当前是最新的),它将警告是否监视了太多文件(即,> 25,000个文件-我选择的一个任意数目)。 If you don't get that warning, it's possible it's your script. 如果未收到该警告,则可能是您的脚本。

Happy to help debug (assuming you're on the latest version) at http://github.com/remy/nodemon/issues/new 很高兴在http://github.com/remy/nodemon/issues/new上帮助调试(假设您使用的是最新版本)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM