aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/node.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index e884c7deb..8aa4f14c7 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -74,7 +74,7 @@ class Node < Formula
system "make install"
unless build.include? 'without-npm'
- (lib/"node_modules/npm/npmrc").write(npmrc)
+ (lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n")
end
end
@@ -90,12 +90,6 @@ class Node < Formula
"#{HOMEBREW_PREFIX}/lib/node_modules"
end
- def npmrc
- <<-EOS.undent
- prefix = #{npm_prefix}
- EOS
- end
-
def caveats
if build.include? 'without-npm'
<<-EOS.undent