Gulp遇到的问题之二

Gulp遇到的问题之二

  • 访问路径带有中文
    • 出现的问题

访问路径带有中文

出现的问题

D:\资料\sass\sassWebsite>gulp
[15:30:13] Using gulpfile D:\资料\sass\sassWebsite\gulpfile.js
[15:30:13] Starting ‘default’…
[15:30:13] Starting ‘clean’…
[15:30:13] Finished ‘default’ after 6.59 ms
[15:30:13] Finished ‘clean’ after 17 ms
[15:30:13] Starting ‘build’…
[15:30:13] Starting ‘compass’…
[15:30:13] Starting ‘html’…
[15:30:13] Finished ‘html’ after 27 ms
[15:30:15] Encoding::CompatibilityError on line [“87”] of D: incompatible character encodings: GBK and UTF-8
Run with --trace to see the full backtrace

events.js:167
throw er; // Unhandled ‘error’ event
^
Error: Compass failed

  1. 访问路径带有中文–“资料”
D:\资料\sass\sassWebsite>
  1. 改变项目的存放路径,把“资料”改为“test”,建议访问路径不带中文
D:\test\sass\sassWebsite>
  1. 运行gulp
D:\test\sassWebsite>gulp
  1. 运行结果
D:\test\sassWebsite>gulp 
[15:35:55] Using gulpfile D:\test\sassWebsite\gulpfile.js
[15:35:55] Starting 'default'...
[15:35:55] Starting 'clean'...
[15:35:55] Finished 'default' after 7.41 ms

你可能感兴趣的:(Gulp)