1
0

More than 1 year has passed since last update.

新しくフォルダを作らずにNext.jsのWebアプリケーションを作成

Posted at

新しくフォルダを作らずに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
  ...

現在のディレクトリにアプリケーションが作成される

1
0
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
1
0