We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461aa14 commit b3f03e9Copy full SHA for b3f03e9
Library/Homebrew/bundle/extensions/npm.rb
@@ -32,7 +32,8 @@ def packages
32
packages = @packages
33
return packages if packages
34
35
- @packages = if (npm = package_manager_executable) && npm.exist?
+ @packages = if (npm = package_manager_executable) &&
36
+ (!npm.to_s.start_with?("/") || npm.exist?)
37
parse_package_list(`#{npm} list -g --depth=0 --json 2>/dev/null`)
38
end
39
return [] if @packages.nil?
0 commit comments