ナスカブログ

未来の自分へのドキュメント

エラー: Can't create . because there's already a non-empty directory . existing in path. の回避方法

$ docker-compose run --rm front yarn create nuxt-app
:
Can't create . because there's already a non-empty directory . existing in path.

作成しようとしているディレクトリの中にファイルなどが存在するとエラーが表示される
自分の場合はDockerfileが存在していたためエラーがでた

回避方法

$ docker-compose run --rm front yarn create nuxt-app ディレクトリ名 

ディレクトリを作成してそこにnuxt-appを作成する
作成した後にfrontディレクトリに移動する