From 581277ba1a7548ba26d113957adfc9dcb4de13b4 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Mon, 13 Feb 2017 19:21:08 +0100 Subject: [npm] collect config lists Collect npm config list (globally and per-project). Resolves: #917 Signed-off-by: Pavel Moravec --- sos/plugins/npm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sos/plugins/npm.py b/sos/plugins/npm.py index cbf35621..ab51e4af 100644 --- a/sos/plugins/npm.py +++ b/sos/plugins/npm.py @@ -90,7 +90,12 @@ class Npm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin): self.get_option("project_path"))) self._get_npm_output("npm ls --json", "npm_ls_project", working_directory=project_path) + self._get_npm_output("npm config list -l", + "npm_config_list_project", + working_directory=project_path) + self._get_npm_output("npm ls -g --json", "npm_ls_global") + self._get_npm_output("npm config list -l", "npm_config_list_global") self._find_modules_in_npm_cache() -- cgit