From 1d121a97a71ce6a4039ad207c96f7a41c60ac3ce Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 16 Nov 2012 21:59:36 -0800 Subject: [PATCH] Convert resolve real paths of `npm -g root`. [closes #116] Former-commit-id: 0379fdf33da465fbb9ac78ddaa9e820b9b3e9987 --- build/post-install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/post-install.js b/build/post-install.js index c3be03b66..7b995b206 100644 --- a/build/post-install.js +++ b/build/post-install.js @@ -114,7 +114,7 @@ process.exit(); } // exit early if not a global install - if (path.resolve(basePath, '..') != stdout.trim()) { + if (path.resolve(basePath, '..') != fs.realpathSync(stdout.trim())) { return; } // download the Closure Compiler