diff options
Diffstat (limited to 'Library/Formula/node.rb')
| -rw-r--r-- | Library/Formula/node.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index 18f700395..cc3f123cd 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -56,7 +56,8 @@ class Node < Formula npmrc.atomic_write("prefix = #{HOMEBREW_PREFIX}\n") npm_root.cd { system "make", "install" } - system "#{HOMEBREW_PREFIX}/bin/npm", "update", "npm", "-g" + system "#{HOMEBREW_PREFIX}/bin/npm", "update", "npm", "-g", + "--prefix", HOMEBREW_PREFIX Pathname.glob(npm_root/"man/*") do |man| man.children.each do |file| |
