msaaddev/new-tailwind-app

Not able to create a new project

Kvaibhav01 opened this issue · 4 comments

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.

@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.

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

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

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