LoginSignup
0
0

More than 1 year has passed since last update.

next.jsの環境構築

Last updated at Posted at 2022-01-04

node.jsを入れる

node.jsの導入の仕方

参考にした動画

デスクトップにフォルダを作成する
仮にmyappと名前にする

ターミナルを起動する

myappまでディレクトリを移動する

terminal
npx create-next-app

プロジェクト名を指定する next-appとかにしてみても良い

作成されたフォルダをVScodeで開く

VScodeのターミナルを開く

作成したプロジェクト名まで cd で移動する

terminal
npm run build
terminal
npm run start

表示されたlocalhostにアクセスしてサイトが表示されていれば成功

terminal
サーバーを閉じる
コントロール + c 

通常はnpm run devで編集しながら確認できる

terminal
npm run dev

参考にした動画

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