当我尝试对Sulp-compass使用Susy和Breakpoint时遇到问题。这段代码有什么我想念的吗?

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 - Susy和Gulp-compass中的断点:错误:无法加载此类文件--susy,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34679965/

10-09 23:28