Grunt手表错误 - 正在等待...致命错误:观看ENOSPC [英] Grunt watch error - Waiting...Fatal error: watch ENOSPC

查看:112
本文介绍了Grunt手表错误 - 正在等待...致命错误:观看ENOSPC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么当我运行监视任务时,出现等待...致命错误:观看ENOSPC
如何解决此问题?

Why do I get the Waiting...Fatal error: watch ENOSPC when I run the watch task ? How do I solve this issue?

推荐答案

感谢jonshf的评论。

Thanks jonshf for your comments.

在做了一些研究后找到了解决方案。运行以下命令。

After doing some research found the solution. Run the below command.

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

对于Arch Linux,将此行添加到/etc/sysctl.d/99-sysctl .conf:

For Arch Linux add this line to /etc/sysctl.d/99-sysctl.conf:

fs.inotify.max_user_watches = 524288

fs.inotify.max_user_watches=524288

这篇关于Grunt手表错误 - 正在等待...致命错误:观看ENOSPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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