Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNA should fail if the target directory is not empty #556

Closed
jamesgeorge007 opened this issue Jun 22, 2020 · 1 comment · Fixed by #570
Closed

CNA should fail if the target directory is not empty #556

jamesgeorge007 opened this issue Jun 22, 2020 · 1 comment · Fixed by #570

Comments

@jamesgeorge007
Copy link
Contributor

jamesgeorge007 commented Jun 22, 2020

Say, we have got a directory my-app in the current path. Firing in create-nuxt-app my-app goes ahead generating the project files within that directory.

@jamesgeorge007 jamesgeorge007 changed the title CNA should fail if the directory supplied as an argument is not empty CNA should fail if the target directory is not empty Jun 22, 2020
@erik-ekberg-sg
Copy link

There should be a way to bypass this through a --force-like argument. I like the safeguard of not accidentally delete / overwriting users files by default, however, there should be a way to overwrite those warning.

I am trying to create a new Nuxt application inside a Docker container so the directory already contains the Dockerfile preventing the Nuxt application from generating.

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

Successfully merging a pull request may close this issue.

2 participants