// workaround hack for https://github.com/isaacs/npm/issues/3305

var spawn = require('child_process').spawn;

if (/0\.10/.test(process.versions.node)) {
  spawn('npm', ['install', 'log4js@0.6.2'], {stdio: 'inherit'});
} else if (/0\.8/.test(process.versions.node)) {
  spawn('npm', ['install', 'log4js@0.5.8'], {stdio: 'inherit'});
}

@@ -1,8 +1,29 @@
+#!/usr/bin/env node%0A%0A
 // worka
@@ -84,21 +84,20 @@
 05%0A%0Avar 
-spawn
+exec
  = requi
@@ -116,20 +116,32 @@
 ocess').
-spaw
+exec;%0Avar versio
 n;%0A%0Aif (
@@ -185,170 +185,184 @@
 %7B%0A  
-spawn('npm', %5B'install', 'log4js@0.6.2'%5D, %7Bstdio: 'inherit'%7D);%0A%7D else if (/0%5C.8/.test(process.versions.node)) %7B%0A  spawn('npm', %5B'
+version = '0.6.2';%0A%7D else if (/0%5C.8/.test(process.versions.node)) %7B%0A  version = '0.5.8';%0A%7D%0A%0Aif (version) %7B%0A  var cp = exec('npm 
 install
-', '
+ 
 log4js@
-0.5.8'%5D, %7B
+' + version);%0A%0A  // because 
 stdi
-o
+n
 : 'i
@@ -368,14 +368,104 @@
 inherit'
-%7D
+ does not work on Windows%0A  cp.stdout.pipe(process.stdout);%0A  cp.stderr.pipe(process.stderr
 );%0A%7D%0A

fix the hack for log4js to work on Windows