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 に答える