Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何找到所有已安装的节点模块?它应该获取本地和全局安装的模块。
npm ls仅获取本地安装的模块。
npm ls
还有一种方法只是列出模块而不是相关的版本号和依赖项。
要仅列出所有全局安装的节点模块名称,请尝试以下操作:
ls `npm root -g`
要列出全局安装的模块,请尝试
npm -g ls