Skip to content

Error: Directory already exists and contains files that might conflict. Please choose a new name. on empty directory #9831

Open
@danthegoodman1

Description

@danthegoodman1

What versions & operating system are you using?

macOS 15.5, node v22.16.0

Please provide a link to a minimal reproduction

No response

Describe the Bug

Creating a new cloudflare project from within an empty directory (./) always fails that it has files

Please provide any relevant error logs

dangoodman: ~/tangiaCode mkdir TangiaAppsDatastore                                                                                                   10:13AM
 dangoodman: ~/tangiaCode cd TangiaAppsDatastore                                                                                                      10:26AM
 dangoodman: ~/tangiaCode/TangiaAppsDatastore npm create cloudflare@latest .                                                                          10:26AM
Need to install the following packages:
[email protected]
Ok to proceed? (y)


> npx
> create-cloudflare .


──────────────────────────────────────────────────────────────────────────────────────────────────────────
👋 Welcome to create-cloudflare v2.50.2!
🧡 Let's get started.
📊 Cloudflare collects telemetry about your usage of Create-Cloudflare.

Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md
──────────────────────────────────────────────────────────────────────────────────────────────────────────

╭ Create an application with Cloudflare Step 1 of 3
│
├ In which directory do you want to create your application?
│ dir ./.
│
├ What would you like to start with?
│ category Hello World example
│
├ Which template would you like to use?
│ type Worker + Durable Objects
│
├ Which language do you want to use?
│ lang TypeScript
│
╰  ERROR  Error: Directory `/Users/dangoodman/tangiaCode/TangiaAppsDatastore` already exists and contains files that might conflict. Please choose a new name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't workingc3Relating to C3 (create-cloudflare) packageenhancementNew feature or request

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions