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