2016-01-08 74 views
3

當我嘗試將Susy和Breakpoint用於我的Gulp指南針時遇到問題。這段代碼中有沒有我錯過的東西?Susy和Gulp-compass中的斷點:錯誤:無法加載這樣的文件--susy

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 
+0

我已經編輯您的帖子與實際文本,以取代你的錯誤信息的擷取畫面。下一次,請複製和粘貼您的控制檯輸出,就像您使用代碼一樣。 – CubeJockey

回答

0

的問題是在此描述: 「不能加載這樣的文件 - 超對稱」。

嘗試運行此命令:

gem install susy

它幫助我;-)

相關問題