Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Not able to create a new project #23

Open
Kvaibhav01 opened this issue Oct 4, 2021 · 4 comments
Open

Not able to create a new project #23

Kvaibhav01 opened this issue Oct 4, 2021 · 4 comments

Comments

@Kvaibhav01
Copy link

Hi! Thanks for this tool but when I run npx new-tailwind-app my-tw-app --basic it gives me an error:

Command line error

How should I fix this? I have installed it globally.

@msaaddev
Copy link
Owner

msaaddev commented Oct 4, 2021

@Kvaibhav01 have you tried changing the name of your folder when you are running the CLI? It says a folder named my-tw-app already exists in the directory where you are trying to create this project.

@msaaddev
Copy link
Owner

msaaddev commented Oct 4, 2021

I have created a project with name my-tw-app. You can take a look at the screenshot.

image

Now if I create another project with the same name my-tw-app, it will give me an error that the folder already exists.

image

@Kvaibhav01
Copy link
Author

Yes, I know but here's how it happens:

  1. I navigate to Web Projects folder: cd Web\ Projects
  2. I run npx new-tailwind-app hello --basic
  3. It says:
✖ Couldn't create basic Tailwind app.

✖  hello  directory already exists. Try changing the name.
  1. I see there is a new folder created under /Web Projects/hello. But nothing else.

Then I do something else like:

  1. Navigate to this new folder: cd hello.
  2. Run npx new-tailwind-app --basic.
  3. It asks me for the project name in kebab case so I enter: "hy-lo".
  4. But still, I get this:

Command line error screenshot

And yes, if we go to the "hello" folder, an empty folder called "hey-lo" is created but nothing apart from this:

Image showing a new folder is created in command line

@msaaddev
Copy link
Owner

msaaddev commented Oct 4, 2021

There must be some bug in the code. I will take a look at it. Thank you pointing this out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants