18
5

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

npm で特定パッケージの依存関係を表示したい

Last updated at Posted at 2018-01-25

npm ls コマンドの引数にパッケージ名を指定する。

例)

$ npm ls clone
babel@ /path/to/babel
├─┬ gulp@3.9.1
│ └─┬ vinyl-fs@0.3.14
│   ├─┬ defaults@1.0.3
│   │ └── clone@1.0.2  deduped
│   └─┬ vinyl@0.4.6
│     └── clone@0.2.0
├─┬ gulp-util@3.0.8
│ └─┬ vinyl@0.5.3
│   └── clone@1.0.2
├─┬ gulp-watch@4.3.11
│ └─┬ vinyl@1.2.0
│   └── clone@1.0.2  deduped
└─┬ webpack-stream@4.0.0
  └─┬ vinyl@2.1.0
    └── clone@2.1.1

参考: ls | npm Documentation

18
5
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
18
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?