title: Browserify bundle.js Error: exec is not a function
body: <p>I recently installed Node.js, npm, samba-client and browserify. The Problem is, that i get an Uncaught TypeError in my bundle.js File and i'm not able to resolve this. </p>
  
  <pre><code>bundle.js:107 
      Uncaught TypeError: exec is not a function
      at SambaClient.execute (bundle.js:107)
      at SambaClient.mkdir (bundle.js:58)
      at Object.8.samba-client (bundle.js:1319)
      at s (bundle.js:1)
      at e (bundle.js:1)
      at bundle.js:1
  </code></pre>
  
  <p>I did some research and found out, that it could be the package.json File that is somewhat wrong.</p>
  
  <pre><code>{
    "name": "package.json",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "directories": {
      "lib": "lib"
    },
    "dependencies": {
      "child_process": "^1.0.2",
      "debug": "^3.1.0",
      "open": "0.0.5",
      "path": "^0.12.7",
      "samba-client": "^2.0.0",
      "util": "^0.10.3"
    },
    "devDependencies": {},
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC"
  }
  </code></pre>
  
  <p>But if i'm honest, i have no clue what to do.</p>
  
  <p>This is the part, where it fails first in bundle.js:</p>
  
  <pre><code>SambaClient.prototype.execute = function(cmd, cmdArgs, workingDir, cb) {
    var fullCmd = wrap(util.format('%s %s', cmd, cmdArgs));
  
    var command = ['smbclient', this.getSmbClientArgs(fullCmd).join(' ')].join(' ');
  
    var options = {
      cwd : workingDir
    };
  
    **exec(command, options, function(err, stdout, stderr) {**
      var allOutput = (stdout + stderr);
      if(err !== null) {
        err.message += allOutput;
      }
      cb(err, allOutput);
    });
  };
  </code></pre>
  
  <p>Hopefully someone can help me. :)</p>