【问题标题】:FATAL: Listen error: unable to monitor directories for changes致命:监听错误:无法监视目录的更改
【发布时间】:2017-07-03 15:02:24
【问题描述】:

我正在尝试查看 sass 目录。我在 ubuntu 16.4 系统上使用以下命令创建了 sass 项目

 compass create sass

得到了结果

directory sass/  directory sass/sass/  directory sass/stylesheets/     create sass/config.rb     create sass/sass/screen.scss     create sass/sass/print.scss     create sass/sass/ie.scss 
        write sass/stylesheets/ie.css
        write sass/stylesheets/print.css
        write sass/stylesheets/screen.css

    ********************************************************************* Congratulations! Your compass project has been created.

    You may now add and edit sass stylesheets in the sass subdirectory of your project.

    Sass files beginning with an underscore are called partials and won't be compiled to CSS, but they can be imported into other sass stylesheets.

    You can configure your project by editing the config.rb configuration file.

    You must compile your sass stylesheets into CSS when they change. This can be done in one of the following ways:
      1. To compile on demand:
         compass compile [path/to/project]
      2. To monitor your project for changes and automatically recompile:
         compass watch [path/to/project]

    More Resources:   * Website: http://compass-style.org/   * Sass: http://sass-lang.com   * Community: http://groups.google.com/group/compass-users/


    To import your new stylesheets add the following lines of HTML (or equivalent) to your webpage: <head>   <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />   <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />   <!--[if IE]>
          <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />   <![endif]--> </head>

我尝试使用compass watch 观看此内容,结果如下所示的错误

Compass 正在关注变化。按 Ctrl-C 停止。致命:监听错误:无法监视目录的更改。访问 https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers 有关如何解决此问题的信息。 bharathi@bharathi-H81M-S:~/share/springwisev2/wp-content/themes/Springwise 2016/图书馆/sass$ 指南针手表

【问题讨论】:

    标签: css sass compass


    【解决方案1】:

    尝试从您的控制台执行此操作:

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

    希望这对你有用 .

    参考:click_here

    【讨论】:

      猜你喜欢
      • 2023-03-04
      • 2010-12-13
      • 1970-01-01
      • 1970-01-01
      • 2022-08-19
      • 2014-05-05
      • 2011-04-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多