尝试运行gulp本地Web服务器时出现sass错误

时间:2016-05-12 15:46:06

标签: sass gulp gulp-sass

我安装了node.js和gulp.js,npm install工作正常,但是当我尝试运行gulp本地网络服务器时,它停在' sass'以下是错误消息。

我已经尝试卸载node.js和gulp.js以及删除node_modules文件夹并再次运行npm install但是还没有运气。有什么建议吗?

[09:50:25] Starting 'generate-sass-index'...
[09:50:26] Finished 'generate-sass-index' after 68 ms
[09:50:26] Starting 'sass'...
[09:50:26] SOURCE CODE ERROR
[09:50:26] formatted Error: You may not @extend an outer selector from within @media.
   You may only @extend selectors within the same directive.
   From "@extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
    on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
[09:50:26] message LocalDistribution\sass\twitter-bootstrap-sass\mixins\_grid-framework.scss
Error: You may not @extend an outer selector from within @media.
   You may only @extend selectors within the same directive.
   From "@extend .col-md-6" on line 134 of    LocalDistribution/sass/ItemDetails/_item-details.scss
    on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
[09:50:26] column 245
[09:50:26] line 11
[09:50:26] file C:/svn/montblanc/LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
[09:50:26] status 1
[09:50:26] messageFormatted LocalDistribution\sass\twitter-bootstrap-sass\mixins\_grid-framework.scss
Error: You may not @extend an outer selector from within @media.
   You may only @extend selectors within the same directive.
   From "@extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
    on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
[09:50:26] name Error
[09:50:26] stack Error: LocalDistribution\sass\twitter-bootstrap-sass\mixins\_grid-framework.scss
Error: You may not @extend an outer selector from within @media.
   You may only @extend selectors within the same directive.
   From "@extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
    on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
at options.error (C:\svn\montblanc\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:271:32)
[09:50:26] showStack false
[09:50:26] showProperties true
[09:50:26] plugin gulp-sass
[09:50:26] Finished 'sass' after 469 ms
[09:50:26] Starting 'font-awesome'...
[09:50:26] Starting 'clean-sass-tmp'...
[09:50:26] Finished 'clean-sass-tmp' after 20 µs

events.js:85
  throw er; // Unhandled 'error' event
        ^
Error: Checksum error in glyf

0 个答案:

没有答案