Npm 即使CSS文件为空,也会吞咽Ruby SASS错误

Npm 即使CSS文件为空,也会吞咽Ruby SASS错误,npm,gulp,gulp-ruby-sass,Npm,Gulp,Gulp Ruby Sass,我目前正在尝试更新我们的web应用程序样板及其构建工具 我当前遇到此错误: events.js:85 throw er; // Unhandled 'error' event ^ Error: Broken @import declaration of "branding", Broken @import declaration of "helper", Broken @import declaration of "routing" 我假设这是某种缓存问题,

我目前正在尝试更新我们的web应用程序样板及其构建工具

我当前遇到此错误:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: Broken @import declaration of "branding", Broken @import declaration of "helper", Broken @import declaration of "routing"
我假设这是某种缓存问题,因为它应该解析的.scss文件是空的。带有
品牌
路由
等文件的项目是另一个项目,我肯定没有在终端的错误文件夹中

我怎样才能解决这个问题?我可以/应该清除缓存吗?怎么做

完成时: Gulpfile样式任务:

// Styles
gulp.task('styles', function() {
  return sass('src/css/app.scss', { 
      sourcemap: true,
      noCache: true
  })
    .on('error', function (err) {
      console.error('Error', err.message);
    })
    .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'))
    .pipe(rename({ suffix: '.min' }))
    .pipe(minifycss())
    .pipe(gulp.dest('dist/css'))
    .pipe(notify({ message: 'Styles task complete' }));
});
Package.json

{
  "name": "boilerplate",
  "version": "1.0.0",
  "description": "Download as ZIP, **don't clone this repo** if you want to create a new project. Only clone if you want to update/change the boilerplate.",
  "main": "gulpfile.js",
  "dependencies": {
    "bower": "^1.3.12",
    "del": "^1.1.1",
    "gulp-autoprefixer": "^2.1.0",
    "gulp": "^3.8.11",
    "gulp-concat": "^2.5.1",
    "gulp-minify-css": "^0.4.6",
    "gulp-notify": "^2.2.0",
    "gulp-rename": "^1.2.0",
    "gulp-jshint": "^1.9.2",
    "gulp-ruby-sass": "^1.0.0",
    "gulp-uglify": "^1.1.0",
    "main-bower-files": "git://github.com/ck86/main-bower-files"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://codeofsumit:091210sk@github.com/codeofsumit/boilerplate.git"
  },
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/codeofsumit/boilerplate/issues"
  },
  "homepage": "https://github.com/codeofsumit/boilerplate"
}

我在上查看了你的项目,它编译得非常好。因此,如果确实是缓存问题,请尝试删除
.sass cache
目录(它隐藏在某些操作系统上),然后再次运行。另一种测试方法是在新文件夹中使用新的
npm安装进行干净的签出
@ddprrt您知道
.sass缓存
文件夹的位置吗?我在OSX上,没有更改任何默认设置。通常在您的项目文件夹中,您可以在其中调用Gulpfile。打开终端并在那里键入
ls-la
,应该会显示所有内容。它不在那里:(您是否尝试过从源repo进行干净的签出?是否会出现相同的错误?