Gulp遇到的问题之二

在使用Gulp时,遇到访问路径包含中文导致的Encoding::CompatibilityError错误。详细错误信息显示在D盘的GBK编码目录下,建议避免使用中文路径以解决此问题。通过将项目路径中的'资料'改为'test',并重新运行gulp,问题得到解决。
摘要由CSDN通过智能技术生成

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
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值