summaryrefslogtreecommitdiff
path: root/lib/license/finder/ext/npm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/license/finder/ext/npm.rb')
-rw-r--r--lib/license/finder/ext/npm.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/license/finder/ext/npm.rb b/lib/license/finder/ext/npm.rb
index 18af4a7..59244c9 100644
--- a/lib/license/finder/ext/npm.rb
+++ b/lib/license/finder/ext/npm.rb
@@ -13,7 +13,7 @@ module LicenseFinder
if lockfile?
shell.execute([:npm, :ci, "--production"], env: default_env, capture: false)
else
- shell.execute([:npm, :install, '--no-save', "--production"], env: default_env)
+ shell.execute([:npm, :install, '--no-save', "--production"], env: default_env, capture: false)
end
end
end
@@ -32,7 +32,7 @@ module LicenseFinder
def npm_json
stdout, _stderr, status = within_project_path do
- shell.execute("npm list --json --long --production")
+ shell.execute([:npm, "list", "--json", "--long", "--production"])
end
status.success? ? JSON.parse(stdout) : {}
end