css - 致命的 : Listen error: unable to monitor directories for changes

标签 css sass compass

我正在尝试查看 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 is watching for changes. Press Ctrl-C to Stop. FATAL: Listen error: unable to monitor directories for changes. Visit https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers for info on how to fix this. bharathi@bharathi-H81M-S:~/share/springwisev2/wp-content/themes/Springwise 2016/library/sass$ compass watch





enter image description here

最佳答案

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

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

希望这对你有用
.

引用文献:click_here

关于css - 致命的 : Listen error: unable to monitor directories for changes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40056039/

相关文章:

css - 在菜单组件中鼠标悬停时更改按钮的图标和文本颜色

css - 悬停不会改变我的 svg 的颜色

java - 安卓 |获取当前位置的北/东南/东/西经纬度和经度范围

css - 渐变叠加在背景颜色中效果不佳

Ruby Compass 编译器不工作,在线错误 [54]

html - Z-index 元素在移动设备上不可点击

css - Bootstrap 模式 : make the whole columns clickable

css - :nth-child(n):before is doesn't working?

css - 当悬停更改颜色时,我的 css ul li 表花名册缺少一个像素

css - 删除行之间的底部填充物化