在一个中文目录下初始项目,无法运行起来

为了测试家里电脑vue-cli好不好使,我在桌面上随便新建了目录,然后在这个目录下初始化一个项目,结果项目初始化后,无法运行起来,报如下错误:


 ERROR  Failed to compile with 1 error                                                    00:26:24

 error  

Conflict: Multiple assets emit different content to the same filename index.html

ERROR in Conflict: Multiple assets emit different content to the same filename index.html

webpack compiled with 1 error
Issues checking in progress...
No issues found.

查了下资料,发现是中文目录导致的,将项目从中文目录移除后,该问题修复了。

参考资料

  1. Vue.js - ERROR in Conflict: Multiple assets emit different content to the same filename index.html