新しくフォルダを作らずにNext.jsのWebアプリケーションを作成したい!!
動作環境
- Linux
- Node.js
- Next.js
フォルダを作成してWebアプリケーションを作成する場合
exampleAppフォルダを作成してNext.jsのWebアプリケーションを作成する場合は次のコマンドを実行する
app# npx create-next-app exampleApp
app
|- exampleApp
|- .next
|- node_modules
|- public
|- src
...
exampleAppフォルダ作成後、アプリケーションが作成される
フォルダを作成してWebアプリケーションを作成する場合
現在のディレクトリにWebアプリケーションを作成する場合は次のコマンドを実行する
app # npx create-next-app --use-npm .
app
|- .next
|- node_modules
|- public
|- src
...
現在のディレクトリにアプリケーションが作成される