【问题标题】:Susy and Breakpoint in Gulp-compass: Error: Cannot load such file --susyGulp-compass 中的 Susy 和断点:错误:无法加载此类文件 --susy
【发布时间】:2016-04-13 07:23:49
【问题描述】:

当我尝试将 Susy 和 Breakpoint 用于我的 Gulp-compass 时遇到问题。这段代码有什么我遗漏的吗?

var compass = require('gulp-compass'),
    autoprefixer = require('gulp-autoprefixer');
        gulp.task('compass', function(){
            gulp.src('scss/style.scss')
                .pipe(compass({
                    config_file: './config.rb',
                    css: 'css',
                    sass: 'scss',
                    require: ['susy', 'breakpoint']
                }))
                .pipe(autoprefixer({
                    browsers: ['last 2 versions'],
                    cascade: false
                }))
                .pipe(gulp.dest('css'));
        });

错误信息:

 bash-4.3$ gulp
[22:43:43] Using gulpfile ~\Desktop\Code Demo\Templates\angular\gulpfile.js
[22:43:43] Starting 'scripts'...
[22:43:43] Finished 'scripts' after 9.72 ms
[22:43:43] Starting 'compass'...
[22:43:43] Finished 'compass' after 3.09 ms
[22:43:43] Starting 'default'...
[22:43:43] Finished 'default' after 2.88 μs
[22:43:47] LoadError on line ["54"] of C: cannot load such file -- susy
Run with --trace to see the full backtrace


events.js:141
      throw er; //Unhandled 'error' event
      ^
 Error: Compass failed

【问题讨论】:

  • 我已经编辑了您的帖子,用实际文本替换了错误消息的屏幕截图。下次,请以与代码相同的方式复制并粘贴控制台输出。

标签: npm gulp gulp-compass


【解决方案1】:

这里描述了问题:“无法加载此类文件--susy”。

尝试运行这个命令:

gem 安装 susy

这对我有帮助;-)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-10
    • 2014-09-30
    • 1970-01-01
    • 1970-01-01
    • 2017-04-19
    • 2014-06-21
    相关资源
    最近更新 更多