Convert resolve real paths of npm -g root. [closes #116]

Former-commit-id: 0379fdf33da465fbb9ac78ddaa9e820b9b3e9987
This commit is contained in:
John-David Dalton
2012-11-16 21:59:36 -08:00
parent 211d13da09
commit 1d121a97a7

View File

@@ -114,7 +114,7 @@
process.exit(); process.exit();
} }
// exit early if not a global install // exit early if not a global install
if (path.resolve(basePath, '..') != stdout.trim()) { if (path.resolve(basePath, '..') != fs.realpathSync(stdout.trim())) {
return; return;
} }
// download the Closure Compiler // download the Closure Compiler