Sass issue when i use the --watch parameter

前端 未结 4 1083
鱼传尺愫
鱼传尺愫 2021-01-18 12:37

When i execute the line

$sass --watch sass/views.scss:views.css

i get the following message

相关标签:
4条回答
  • 2021-01-18 13:23

    I had the same issue. You just need to run the command in sudo mode.

    sudo sass --watch sass/views.scss:views.css
    
    0 讨论(0)
  • 2021-01-18 13:33

    I tried these answers and none worked, so i did some more research. Apparently, the problem is with the listen gem that SASS is using. Sass is only compatible with listen 0.7.

    I was able to get it working by running the following two commands (as root):

    gem uninstall listen
    gem install listen -v 0.7.3
    
    0 讨论(0)
  • 2021-01-18 13:33

    I fixed it by uninstalling the original sass I had installed using apt-get (ruby-sass) and reinstalled using gem

    0 讨论(0)
  • 2021-01-18 13:36

    Well i fix my problem updating the sass gem to the latest version (3.2.9). I think that this update provide better compatibility with Ruby 2.0.0 when using he --watch parameter. Everything works great now.

    0 讨论(0)
提交回复
热议问题