TX026

目标目录不为空

控制台

Text.js error TX026: The directory … contains files that could conflict. Either try using a new directory name, or remove the files.

发生原因

create-text-app 只在新目录或空目录中创建项目,因此不会覆盖你的文件。目录中可以有 .git 目录和编辑器文件夹(.vscode、.idea)。

修复方法

选择一个新的目录名:

bunx create-text-app my-console-app