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

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

问题描述

为什么我在运行 watch 任务时会收到 Waiting...Fatal error: watch ENOSPC ?我该如何解决这个问题?

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

推荐答案

经过一番研究找到了解决方案.运行以下命令.

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

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

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