npm ls

列出已安装的包

概要

npm ls <package-spec>

alias: list

描述

此命令将以树形结构打印到标准输出中已安装的包的所有版本,以及指定 --all 时它们的依赖关系。

注意:要获得 "bottoms up" 视图,了解为什么给定包完全包含在树中,请使用 npm explain

位置参数是 name@version-range 标识符,它将结果限制为仅指定包的路径。请注意,嵌套包还将显示指定包的路径。例如,在 npm 的源代码树中运行 npm ls promzard 将显示:

npm@9.6.2 /path/to/npm
└─┬ init-package-json@0.0.4
  └── promzard@0.1.5

它将打印出无关的、丢失的和无效的包。

Bg/ZIEHz2M8s/gl05Om24nxRwvroIEctKnV8HrFBZO6NF/PI+0957KSeet5gMd6zW41ikQtzPCAVjwgtsFYAlR+Y6gV2dgxM5W0Fu8xYGmVTcOKlqsLrMiUwf6NOWE9zwI55jdpsWLPpMcf2F8TY8w07XA7CYpPKDsCNoPqruWsNFUboPTww+WmAYoSlSWuoVpM4UoZLtFCBEhUTqzLwGkZ8u1xsTXRa527OkHoGKtw=

SxNq08wnM4rgZSOTjl3pElVNUMYDo5hB0PLYath0/Cf2Re3qog1lFhuIPVJmycUQscyxrHMWhC7SkgNnUhnSycBe0ZR5EsScof23lbO901zcZqDCBiqTohGRmYb9Um6J0YeU3gEMsEjqf6EOJu/+jFyQiBKLaWFjO8ErPyYZwVI=

vXXyZoCXNGJL2Bdq7B0GKUxA3BnPgBmwZSA7Xs7zWLpKpETHqBLBmbtYNMzCVtjcJI0AYn2O7ZjU6qaqubIuT8xIeLo2ow0/JFSkNeKClvs=

注意:设计更改待定

/PysyIuPk+NaKSz4xRKpkP6VSe6rCCeoD51PtRGcWhPWIMvpLtFwdUrpeQDrS7aiRA/In9aHfkwldabgmQMgDJew5z7T8b6QRSxZtUAX+mKUwnDs9QJC6B0UMzXgl7fd3rY1V3QocaZlu3MqwwbSFrUs30bM5msUnI3whL0QY/4ktIOp4DuFnl5JWPXQAuKLBClLzikxt5sws5X7lkwmfZHwlviS4BsITPyHoDM2Cp+L+UgCEe4RbKIRGCvoIj75j104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