Peng88811

Results 4 comments of Peng88811

我也遇到了,windows11,GPT回复的是:这个错误是在尝试使用 electron-builder 编译 TypeScript 配置文件时发生的。问题的根源在于文件系统操作,具体是因为尝试创建一个包含非法字符的目录。 错误消息指出,系统无法在路径 C:\Users\Administrator\.cache\config-file-ts\:-project-template-react-ts-electron-builder.config.ts 下创建目录或写入文件。在 Windows 文件系统中,路径名中的冒号 : 是不允许的,因为它是为驱动器标签(如 C:)保留的。

![image](https://github.com/Xutaotaotao/electron-prokit/assets/92702721/91a3b927-8ebb-4d99-a9a2-ec25f01bb54e) 图中是项目结构,使用的是template-react-ts,并且图中也有node版本号,运行:"compile": "electron-builder build --config ./electron-builder.config.ts",就会报楼主的错误

"C:\Program Files\nodejs\yarn.cmd" run compile yarn run v1.22.22 warning package.json: "test" is also the name of a node core module $ electron-builder build --config ./electron-builder.config.ts • electron-builder version=24.13.3 os=10.0.22631 compiling: [...