LoginSignup
0
0

More than 1 year has passed since last update.

VueRouterのバージョン指定してインストールする

Posted at

VueRouterのインストール
プロジェクトフォルダを開いた状態で、下記コマンドを実行。

console.
npm install vue-router

これだと、最新のvue-routerがインストールされてしまう。

vue-routerのバージョン指定してインストールしないと、
正しい環境構築にはならず不要なエラーを招く原因になる。
(今回はバージョン3.5.3を指定)

console.
npm install vue-router@3.5.3 --save --legacy-peer-deps

スクリーンショット 2022-08-30 0.00.42.png

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