0

据说,我应该把 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)

我应该如何处理?

4

1 回答 1

3

此命令在 linux 中解决它:

sudo sh -c 'echo 8192 > /proc/sys/fs/inotify/max_user_instances'
于 2012-07-02T21:40:00.413 回答