gpt4 book ai didi

npm - Gulp-compass : Error: Cannot load such file --susy 中的 Susy 和断点

转载 作者:行者123 更新时间:2023-12-04 06:06:45 30 4
gpt4 key购买 nike

当我尝试将 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

最佳答案

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

尝试运行这个命令:

gem install susy

这对我有帮助 ;-)

关于npm - Gulp-compass : Error: Cannot load such file --susy 中的 Susy 和断点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34679965/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com