aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-02-19 08:43:27 -0600
committerMisty De Meo2013-02-19 08:43:27 -0600
commitdb0749b3e3d7a9dfa069814d608489145ed8e6bb (patch)
treec2bbe2d3884a8271fe5f2ac9f0d19527164dbfd0 /Library/Formula/node.rb
parente94eb7075ddd990042b6482cf941ff2fc9a34093 (diff)
downloadhomebrew-db0749b3e3d7a9dfa069814d608489145ed8e6bb.tar.bz2
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.
Diffstat (limited to 'Library/Formula/node.rb')
-rw-r--r--Library/Formula/node.rb2
1 files changed, 1 insertions, 1 deletions
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