MAO-EYE 2013-07-30 03:45 采纳率: 100%
浏览 415
已采纳

如何列出 npm 用户安装的软件包?

How do I list the user-installed package ONLY in npm? When I do npm -g list it outputs every package and their dependencies, which is not what I want.

转载于:https://stackoverflow.com/questions/17937960/how-to-list-npm-user-installed-packages

  • 写回答

12条回答 默认 最新

  • ℙℕℤℝ 2014-08-26 02:20
    关注

    This works pretty well too: npm list -g --depth=0

    • npm: the Node package manager command line tool
    • list -g: display a tree of every package found in the user’s folders (without the -g option it only shows the current directory’s packages)
    • depth 0 / — depth=0: avoid including every package’s dependencies in the tree view

    Reference

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(11条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?