fix for spawnNpm destroyed env.logger