Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/196.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
导致Grunt错误的Sass断点_Sass_Breakpoint Sass - Fatal编程技术网

导致Grunt错误的Sass断点

导致Grunt错误的Sass断点,sass,breakpoint-sass,Sass,Breakpoint Sass,刚刚用Mavericks在我的MacBook上进行了新的安装。我正在使用Yeoman和grunt来编译我的项目。重新安装并从repo中取出代码后,我看到以下错误: Warning: LoadError on line ["55"] of /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- app/bower_components/compass-breakpoint/lib

刚刚用Mavericks在我的MacBook上进行了新的安装。我正在使用Yeoman和grunt来编译我的项目。重新安装并从repo中取出代码后,我看到以下错误:

Warning: LoadError on line ["55"] of /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb: 
cannot load such file -- app/bower_components/compass-breakpoint/lib/breakpoint

Run with --trace to see the full backtrace Use --force to continue.
我需要GrunFile.js中的断点。如果我删除require,那么一切都会按预期编译,不会出现错误


如果我能提供更多细节,请告诉我。谢谢

所以这个错误似乎是由于您没有指向正确的文件(这就是
无法加载这样的文件的意思)
错误的意思),所以请仔细检查您的导入路径是否正确,但是现在,您必须通过Ruby Compass使用断点,因为它需要一些Ruby代码才能正常工作。在Sass 3.3可用的情况下,这个Ruby依赖项会消失,断点会得到更新,但它需要一个与Sass 3.3兼容的编译器(例如,libsass,它的powers
grunt Sass
,与Sass 3.3不兼容)


我鼓励您使用
grunt contrib compass
,使用来管理Ruby版本依赖关系,并通过Ruby compass进行编译。这些步骤应该可以解决您的问题。

建议使用NPM断点。用于安装:


npm安装断点sass&在config.rb文件中添加require'breakpoint'

非常好,解决了我的问题,谢谢。出于某种原因,我想我需要安装gem和bower软件包。@snugu如果我想删除compass complety而不使用它怎么办。是否有其他方法使其与grunt一起工作?Breakpoint可通过Bower进行任何安装,并作为Eyeglass模块提供,用于节点Sass和Eyeglass,解决了以下问题: