LoginSignup
3
1

More than 1 year has passed since last update.

create next appでカレントディレクトリに展開する方法

Posted at

はじめに

create next appでカレントディレクトリにファイルを展開する方法

誰かが作った空のブランチとか、すでに存在するディレクトリ内とかにソースコードを展開する時だったり、create next appでrootディレクトリを作成せずにファイルを展開したい場合があると思います。そういう場合にcreate next appする方法をメモします。

どうやるか

.を使うとできる

スクリーンショット 2022-06-18 9.33.40.png

直接カレントディレクトリを指定、もしくはディレクトリ名指定せずに実行してプロジェクト名の入力時に.を指定

npx create-next-app .

//もしくは
npx create-next-app
✔ What is your project named? … .

おわりに

今回は、create-next-appでカレントディレクトリにファイルを展開する方法を記述しました。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1