错误:将node_modules放入/ public时观察EMFILE

时间:2012-07-02 20:50:24

标签: meteor

据说,我应该将node_modules放入Meteor的/ public中。这工作正常,直到我在node_modules目录中获得大量文件,我开始收到此错误:

Error: watch EMFILE
    at errnoException (fs.js:648:11)
    at FSWatcher.start (fs.js:675:11)
    at Object.watch (fs.js:703:11)
    at [object Object]._scan (/usr/local/meteor/app/meteor/run.js:347:12)
    at /usr/local/meteor/app/meteor/run.js:362:14
    at Array.forEach (native)
    at Function.<anonymous> (/usr/local/meteor/app/lib/third/underscore.js:76:11)
    at [object Object]._scan (/usr/local/meteor/app/meteor/run.js:361:9)
    at /usr/local/meteor/app/meteor/run.js:362:14
    at Array.forEach (native)

我该如何处理?

1 个答案:

答案 0 :(得分:3)

这个命令在linux中解决了它:

sudo sh -c 'echo 8192 > /proc/sys/fs/inotify/max_user_instances'