Remove stderr from the exec error check in post-install.js. [closes #101]

Former-commit-id: eecd66ffe3bce1bd6ef0261140bd634567ec60ae
This commit is contained in:
John-David Dalton
2012-11-06 03:23:14 -08:00
parent 2712f17262
commit 7629bca62d

View File

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