【问题标题】:Grunt serve watch error - Waiting…Warning error: watch ENOSPC [duplicate]Grunt serve watch 错误 - 等待...警告错误:观看 ENOSPC [重复]
【发布时间】:2015-11-07 16:07:45
【问题描述】:

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

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

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

寻找建议以使其发挥作用。

【问题讨论】:

    标签: gruntjs


    【解决方案1】:

    试试这个命令:

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

    它应该可以工作。

    【讨论】:

    • 在 Ubuntu 15.04 - 64bits 中完美运行
    • 嗨,这个命令有什么作用?
    • 也在 Ubuntu 16.04 中工作过!
    猜你喜欢
    • 2013-05-20
    • 2016-12-15
    • 2014-11-02
    • 2016-01-23
    • 2020-09-24
    • 2014-04-03
    • 1970-01-01
    • 2015-06-04
    • 2015-10-02
    相关资源
    最近更新 更多