我的sass或css文件正在呈现,我收到了这个池回退错误。
有谁知道这个错误意味着什么?
carlagoncalves:~/workspace (master) $ node server.js
server running....
^C
carlagoncalves:~/workspace (master) $ node app.js
carlagoncalves:~/workspace (master) $ sass --watch styles.scss:styles.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
error No such file or directory @ rb_sysopen - styles.scss
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring ffi-1.9.23 because its extensions are not built. Try: gem pristine ffi --version 1.9.23
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
[Listen warning]:
Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.
^Ccarlagoncalves:~/workspace (master) $ sass --watch styles.sass:styles.css
>>> Sass is watching for changes. Press Ctrl-C to stop.
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring ffi-1.9.23 because its extensions are not built. Try: gem pristine ffi --version 1.9.23
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
[Listen warning]:
Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.
答案 0 :(得分:0)
正如错误消息中所述,找不到文件 styles.s c ss :
error No such file or directory @ rb_sysopen - styles.scss
您的目录中似乎有一个名为 styles.sass 的文件,因此您可以尝试将命令更改为以下内容:
$ sass --watch styles.sass:styles.css
此外,似乎有未构建的扩展,您可以尝试使用错误消息中指定的命令进行修复(下面的几个示例)
Try: gem pristine executable-hooks --version 1.3.2
Try: gem pristine ffi --version 1.9.23
Try: gem pristine gem-wrappers --version 1.2.7