错误:将 node_modules 放入/public 时观察 EMFILE [英] Error: watch EMFILE when putting node_modules in /public

查看:32
本文介绍了错误:将 node_modules 放入/public 时观察 EMFILE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Supposedly, I'm supposed to put node_modules into /public in Meteor. This works fine, up until a point where I get a lot of files in the node_modules directory, and I start getting this error:

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)

我该如何处理?

推荐答案

linux下这个命令解决:

This command solves it in linux :

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

这篇关于错误:将 node_modules 放入/public 时观察 EMFILE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆