aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 21:55:39 -0700
committerAdam Vandenberg2012-08-27 21:55:39 -0700
commita8769c7e85aef083e7fc2c878e5ae6f05166f320 (patch)
treed59915886a4d4b90146a4eb270cdd1941508f148 /Library/Formula/node.rb
parent4619489ac8a89bb23d51be41a6e8c0819e6f9814 (diff)
downloadhomebrew-a8769c7e85aef083e7fc2c878e5ae6f05166f320.tar.bz2
node: fix use of new dsl
Diffstat (limited to 'Library/Formula/node.rb')
-rw-r--r--Library/Formula/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 428cc9f52..ffec4a4d5 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -61,7 +61,7 @@ class Node < Formula
system "./configure", *args
system "make install"
- unless build.include? '--without-npm'
+ unless build.include? 'without-npm'
(lib/"node_modules/npm/npmrc").write(npmrc)
end
end
@@ -85,7 +85,7 @@ class Node < Formula
end
def caveats
- if ARGV.include? '--without-npm'
+ if build.include? 'without-npm'
<<-EOS.undent
Homebrew has NOT installed npm. We recommend the following method of
installation: