7*4 2013-07-30 03:45 采纳率: 50%
浏览 462
已采纳

如何列出 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 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序