内部错误:无效UTF-8 - Sass &饮而尽
Internal Error: Invalid UTF-8 - Sass & Gulp
尝试在Linux Ubuntu中运行gulp sass
时出现以下错误
hutber@hutber-ubuntu:/var/www/beta.norsemanfc.co.uk$ gulp sass
[14:43:26] Using gulpfile /var/www/beta.norsemanfc.co.uk/gulpfile.js
[14:43:26] Starting 'sass'...
[14:43:27] gulp-notify: [Compile Error] frontend/sass/style.scss
Internal Error: Invalid UTF-8
[14:43:27] Finished 'sass' after 547 ms
在所有文件/文件夹中搜索任何特殊字符都不会返回任何结果。
hutber@hutber-ubuntu:/var/www/beta.norsemanfc.co.uk$ find ./* -iregex '.*/.*[èö].*' -print
否则,如果我删除文件开头的@import,它将在@include border-box-sizing;因为这是susy
那么我怎么才能让sass在本地运行呢?
hutber@hutber-ubuntu:/var/www/beta.norsemanfc.co.uk/frontend/sass$ find ./* | xargs grep -i '.*/.*[èö].*'
grep: ./fonts: Is a directory
grep: ./fonts/helvetica-neue: Is a directory
grep: ./modules: Is a directory
grep: ./modules/form: Is a directory
grep: ./pages: Is a directory
grep: ./plugins: Is a directory
grep: ./susy: Is a directory
grep: ./susy/susy: Is a directory
grep: ./susy/susy/language: Is a directory
grep: ./susy/susy/language/susy: Is a directory
grep: ./susy/susy/language/susyone: Is a directory
grep: ./susy/susy/su: Is a directory
grep: ./susy/susy/output: Is a directory
grep: ./susy/susy/output/support: Is a directory
grep: ./susy/susy/output/float: Is a directory
grep: ./susy/susy/output/shared: Is a directory
注:类似问题:错误&;Invalid utf -8&;当用@import编译sass时这是通过从路径中删除特殊字符来修复的,但是我所有的文件夹都是英文的,并且一直都是。
您可以尝试将文件转换为ASCII,看看是否?,这些是非UTF-8字符:
cat your-file.css | iconv -f utf-8 -t ascii//TRANSLIT > ascii.css
相关文章:
- Node.js v6.2.0类扩展不是函数错误
- Jquery菜单操作不稳定,定位不正确,存在一般错误
- document.open/document.write没有正确地清除chrome中的文档——这是chrome的错误吗
- 试图在引导模式内动态生成图表,得到offsetWidth错误
- 为什么会出现错误;未捕获的类型错误:undefined不是函数;
- 我如何修复包含在captcha的addthis中的错误
- 同样,同样的错误'ahorcado.js:26未捕获类型错误:无法读取属性'beginPath'
- 节点是否需要模块传递带有方括号的arg?这是个错误吗
- Webpack/Rect:遵循egghead.io教程,但出现错误:您可能需要一个合适的加载程序来处理此文件类型
- CKFinder 3为所选文件返回错误的URL
- 同位素库错误:未捕获错误无布局模式包装生产线8
- SASS错误导致的奇怪的吞咽崩溃
- 运行“saas:dev”(sass) 任务总线错误:10
- 导入的 Sass 文件的咕噜声“未定义的变量”错误
- 如何在节点sass编译sass代码时抛出自定义错误
- 内部错误:无效UTF-8 - Sass &饮而尽
- Gulp-ruby-sass插件不抛出错误,只记录错误本身
- Grunt sass任务产生错误,由于波旁包
- 来自 gulp-ruby-sass 的语法错误似乎不正确
- Grunt Sass错误:找不到要导入的文件或不可读