0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

バージョンを指定してNuxtのプロジェクトを作成する

Posted at

こんにちは。今回はNuxtな開発環境を構築する場合に、プロジェクト作成に際してバージョンを指定したい場合の方法をご紹介します。(個人的な備忘録の意が強い)

通常のプロジェクト作成

Nuxtは通常、以下のコマンドで最新バージョンのプロジェクトを作成することができます。<Project Name>には任意の文字列(プロジェクト名)が入り、それに従ってプロジェクトのディレクトリが生成されます。文字列の代わりに.と入力するとnuxt-appというプロジェクト名に自動で指定されます。

npx nuxi init <Project Name>

バージョンを指定する場合

Nuxtのバージョンを指定する場合は以下のコマンドでプロジェクトを作成することができます。

npx nuxi@<Version Number> init <Project Name> 

例えば3.4.0を指定したい場合は、以下の様になります。

npx nuxi@3.4.0 init my-app

久しぶりのQiita投稿に加えて、超ライトな内容でしたがご容赦ください。
ご精読ありがとうございました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?