77
41

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 3 years have passed since last update.

意外と間違えるVue.jsのバージョン確認方法

Posted at

#間違い

% vue -V
@vue/cli 4.1.1

一見合ってそうですが、このコマンドではVue.jsのプロジェクトを簡単に立ち上げるためのパッケージ「Vue CLI 」のバージョンが表示されてしまいます。

#正解
##プロジェクトごとにインストールしている場合

% npm list vue
vue-hoge@1.0.0 /Users/fuga/project/vue-hoge
└── vue@2.6.10 

##グローバルにインストールしている場合

% npm list -g vue
/usr/local/lib
└── vue@2.6.10 
77
41
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
77
41

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?