aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-08-31 18:36:19 +0100
committerMike McQuaid2014-08-31 18:36:46 +0100
commit6cd5fd460854f1f4d4bc7b58d2ad9115a226edc5 (patch)
tree25b8299468c4025a87684bff04cdcc944f1af39c /Library/Formula
parent25d8454e85370b968e30c21d81191e6f87ee3a7a (diff)
downloadhomebrew-6cd5fd460854f1f4d4bc7b58d2ad9115a226edc5.tar.bz2
node: don't use user npmrc.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/node.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index a8281d9c9..2b362c3ac 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -51,6 +51,7 @@ class Node < Formula
npmrc = npm_root/"npmrc"
npmrc.atomic_write("prefix = #{HOMEBREW_PREFIX}\n")
+ ENV["NPM_CONFIG_USERCONFIG"] = npmrc
npm_root.cd { system "make", "install" }
system "#{HOMEBREW_PREFIX}/bin/npm", "install", "--global", "npm@latest",
"--prefix", HOMEBREW_PREFIX