aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb3
-rw-r--r--Library/Homebrew/keg.rb2
2 files changed, 1 insertions, 4 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index edb577b0f..541d0085f 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -65,9 +65,6 @@ class Node < Formula
unless build.include? 'without-npm'
(lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n")
- # we need to force make this directory, or node modules installed here
- # by npm will end up in the node keg and won't survive upgrades
- mkdir_p "#{HOMEBREW_PREFIX}/lib/node_modules"
end
end
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index e7a8a7406..475ecf688 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -141,7 +141,7 @@ class Keg < Pathname
when /^gdk-pixbuf/ then :mkpath
when 'ghc' then :mkpath
when 'lua' then :mkpath
- when 'node' then :mkpath
+ when /^node/ then :mkpath
when /^ocaml/ then :mkpath
when /^perl5/ then :mkpath
when 'php' then :mkpath