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); }