Grunt发送手表错误 - 等待...警告错误:观看ENOSPC

时间:2015-08-14 11:52:32

标签: gruntjs

在Linux上运行grunt serve会创建一个无限循环:

$ grunt serve
Running "watch" task
Waiting...
Warning: watch ENOSPC

Running "watch" task
Waiting...
Warning: watch ENOSPC
...

寻找使其有效的建议。

1 个答案:

答案 0 :(得分:22)

尝试使用此命令:

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

它应该有用。

相关问题