From db0749b3e3d7a9dfa069814d608489145ed8e6bb Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 19 Feb 2013 08:43:27 -0600 Subject: node: fix NpmNotInstalled requirement With some older versions of node, apparently the npm directory itself is not a symlink into the node keg but the npm binary is. Fixes #17668.--- Library/Formula/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index 515d0566a..a64ded1d0 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -32,7 +32,7 @@ class NpmNotInstalled < Requirement satisfy :build_env => false do begin - path = Pathname.new("#{modules_folder}/npm") + path = Pathname.new("#{modules_folder}/npm/bin/npm") path.realpath.to_s.include?(HOMEBREW_CELLAR) rescue Errno::ENOENT true -- cgit v1.2.3