aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/language
diff options
context:
space:
mode:
authorChristian Moritz2017-06-26 21:34:05 +0200
committerChristian Moritz2017-06-29 20:29:25 +0200
commitfe39dbb78c2d62111358bfa00b6219ef43db7a4f (patch)
tree1d77d292f931c786a3f1e7ee57666e5d76496f7b /Library/Homebrew/language
parent495520a1f9d55712a6a0d3eae6123fda60dbaeae (diff)
downloadbrew-fe39dbb78c2d62111358bfa00b6219ef43db7a4f.tar.bz2
language/node: log verbose npm pack output
This makes npm pack to log verbose debug output to the console to simplify debugging npm pack failures. Refs: https://github.com/Homebrew/brew/pull/2820#discussion_r123890729 Prevously Utils.popen_read swallowed all debug output.
Diffstat (limited to 'Library/Homebrew/language')
-rw-r--r--Library/Homebrew/language/node.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/language/node.rb b/Library/Homebrew/language/node.rb
index 86874e385..02885d62f 100644
--- a/Library/Homebrew/language/node.rb
+++ b/Library/Homebrew/language/node.rb
@@ -10,7 +10,9 @@ module Language
# fed to `npm install` only symlinks are created linking back to that
# directory, consequently breaking that assumption. We require a tarball
# because npm install creates a "real" installation when fed a tarball.
- output = Utils.popen_read("npm pack").chomp
+ pack_cmd = "npm pack -ddd"
+ ohai pack_cmd
+ output = `#{pack_cmd}`
if !$CHILD_STATUS.exitstatus.zero? || output.lines.empty?
raise "npm failed to pack #{Dir.pwd}"
end