aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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