title: Express combined with browser-sync with node
body: <p>I am very new to the world of JavaScript and i am trying to build my development environment for the first time what i want to achieve  should be simple...</p>
  
  <p>I want to run an Express server along with browser-sync for hot reloading i am not using gulp or grunt </p>
  
  <p>but i keep getting this error:</p>
  
  <pre><code>Starting the application in the development mode...
  [BS] Proxying: http://localhost:3000
  [BS] Access URLs:
   ------------------------------------
      Local: http://localhost:3000
   External: http://10.111.234.196:3000
   ------------------------------------
  [BS] Watching files...
  events.js:160
        throw er; // Unhandled 'error' event
        ^
  
  Error: listen EADDRINUSE :::3000
  </code></pre>
  
  <p>this is what my my scripts look like in the <code>package.jason</code> file</p>
  
  <pre><code>"scripts": {
  "prestart": "babel-node buildScripts/startMessage.js",
  "start": "npm-run-all --parallel security-check open:src",
  "open:src": "babel-node buildScripts/srcServer.js &amp; browser-sync start --proxy 'localhost:3000' --files 'src' --no-ui",
  "security-check": "nsp check"
  },
  </code></pre>
  
  <p>in the <code>srcServer.js</code> :</p>
  
  <pre><code>import express from 'express';
  import path  from 'path';
  import open  from 'open';
  
  const port = 3000;
  const app = express();
  
  
  app.get('/', function(request, response){
  response.sendFile(path.join(__dirname, '../src/index.html'));
  });
  
  app.listen(port, function(err){
  if(err){
  console.log(err);
  }else{
  open('http://localhost:'+ port)
  }
  });
  </code></pre>
  
  <p>and in the <code>bs-config.js</code> file is the default one i just changed ui to <code>false</code> </p>
  
  <p><a href="https://stackoverflow.com/questions/37548537/express-and-browsersync-without-gulp">This question</a> gave me the hint to use the proxy but i still get that error that i have no idea why ...please enlighten me i want to understand what's wrong</p>