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?

vue.jsのバージョン確認方法

Posted at

npm list

npm list

リストが表示されるのでvue@を探す。下記の例で3.5.12。

├── @vuepic/vue-datepicker@10.0.0
├── bootstrap-icons@1.11.3
├── bootstrap@5.3.3
├── nuxt@3.14.159
├── vue-router@4.4.5
└── vue@3.5.12

npm listから検索

npm list vue --depth=0

コマンドで指定した名前のパッケージのみが表示される。
--depth=0を指定してトップレベルのパッケージ名のみに限定する。
そうしないと依存関係のあるパッケージも検索されてしまう。

└── vue@3.5.12

package-lock.jsonから探す

package-lock.jsonを開いてnode_modules/vueで検索する
versionのところを見る。

    "node_modules/vue": {
      "version": "3.5.12",
      "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.12.tgz",
      "integrity": "sha512-CLVZtXtn2ItBIi/zHZ0Sg1Xkb7+PU32bJJ8Bmy7ts3jxXTcbfsEfBivFYYWz1Hur+lalqGAh65Coin0r+HRUfg==",
      "dependencies": {
        "@vue/compiler-dom": "3.5.12",
        "@vue/compiler-sfc": "3.5.12",
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?