aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2015-02-17 15:13:00 +0000
committerMike McQuaid2015-02-17 16:07:51 +0000
commit1580f8b8b4beabc95af4b527e4a832970958e26d (patch)
tree334fafb12e83d66490c15b2c997164215fbce58c /Library/Formula
parentda032a9279b5015378b70825e7922c152c6e35e3 (diff)
downloadhomebrew-1580f8b8b4beabc95af4b527e4a832970958e26d.tar.bz2
node: override npmrc in $home
Closes #36833. Closes #36899. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/node.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 40caf0e65..371d74409 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -54,7 +54,8 @@ class Node < Formula
# make sure npm can find node
ENV.prepend_path "PATH", bin
-
+ # make sure user prefix settings in $HOME are ignored
+ ENV["HOME"] = buildpath/"home"
# set log level temporarily for npm's `make install`
ENV["NPM_CONFIG_LOGLEVEL"] = "verbose"