gpt4 book ai didi

meteor - 启动 todos 示例时出错

转载 作者:行者123 更新时间:2023-12-04 17:11:39 24 4
gpt4 key购买 nike

菜鸟在这里。在 linux 上,我安装了meteor,尝试加载“todos”应用程序,但出现此错误。它似乎与文件系统监控有关?我错过了包裹或烫发吗?我用sudo安装了meteor,但我安装了“todos”作为我的基本用户。

提前致谢!

~$ mkdir meteorDev
~$ cd meteorDev/
~/meteorDev$ meteor create --example todos
todos: created.

To run your new app:
cd todos
meteor
~/meteorDev$ cd todos/
~/meteorDev/todos$ meteor
[[[[[ ~/meteorDev/todos ]]]]]

Running on: http://localhost:3000/

fs.js:663
throw errnoException(errno, 'watch');
^
Error: watch EMFILE
at errnoException (fs.js:636:11)
at FSWatcher.start (fs.js:663:11)
at Object.watch (fs.js:691:11)
at [object Object]._scan (/usr/lib/meteor/app/meteor/run.js:322:12)
at Array.forEach (native)
at Function.<anonymous> (/usr/lib/meteor/app/lib/third/underscore.js:76:11)
at new <anonymous> (/usr/lib/meteor/app/meteor/run.js:264:5)
at /usr/lib/meteor/app/meteor/run.js:455:17
at /usr/lib/meteor/app/meteor/run.js:512:5
at /usr/lib/meteor/app/meteor/run.js:570:9

最佳答案

Meteor 使用 node 的“fs.watch”命令,它使用了 linux 的 inotify API。您的系统可能没有 inotify 支持,或者它已关闭。试试这个,看看你是否启用了 inotify:

 cat /proc/sys/fs/inotify/max_user_instances

如果该文件存在并且其中的数字很小,请尝试此 作为根 达到极限:
 echo 8192 > /proc/sys/fs/inotify/max_user_instances

如果该文件不存在,则很可能您的系统不支持 inotify 或者它以某种方式关闭。

max_user_instances 的增加是暂时的,重启后不会持续。要使其永久化:
 echo fs.inotify.max_user_instances=8192 | sudo tee /etc/sysctl.d/10-inotify.conf && sudo sysctl -p

关于meteor - 启动 todos 示例时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10129496/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com