在搭建第一个 Vite 项目时,命令行报错:The filename, directory name, or volume label syntax is incorrect. (文件名、目录名或卷标语法不正确)
如图:
解决办法:参考文章:https://segmentfault.com/a/1190000043503907
之后使用一下代码创建项目
yarn create vite
如果出现Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
既是nodejs版本过低,升级版本即可,v16以上