From 7629bca62d7e255f622a0b078f59982c26532fda Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 6 Nov 2012 03:23:14 -0800 Subject: [PATCH] Remove `stderr` from the `exec` error check in `post-install.js`. [closes #101] Former-commit-id: eecd66ffe3bce1bd6ef0261140bd634567ec60ae --- build/post-install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/post-install.js b/build/post-install.js index 4329c93f0..0d8c37824 100644 --- a/build/post-install.js +++ b/build/post-install.js @@ -76,8 +76,8 @@ /*--------------------------------------------------------------------------*/ - exec('npm -g root', function(exception, stdout, stderr) { - if (exception || stderr) { + exec('npm -g root', function(exception, stdout) { + if (exception) { console.error('There was a problem loading the npm registry.'); process.exit(1); }