title: Where do npm background scripts go?
body: <p>I have a program which relies on another program being run so I added this <code>build</code> command to my <code>package.json</code> file </p>
  
  <pre><code>"scripts": {
      "start": "brunch watch --server",
      "build": "coffee server/modules/events/book_server.coffee &amp;"
    }
  </code></pre>
  
  <p>so before I run my main script with <code>npm start</code> I run <code>npm run-script build</code> which makes my main script work, however when I quit my main script and then look for background processes with <code>bg</code> I get the message </p>
  
  <pre><code>&gt; -bash: bg: current: no such job
  </code></pre>
  
  <p>so I decided to run <code>npm run-script build</code> again however the previous process must still have been running because I got the error message </p>
  
  <pre><code>events.js:66
          throw arguments[1]; // Unhandled 'error' event
                         ^
  Error: listen EADDRINUSE
    at errnoException (net.js:776:11)
    at Server._listen2._connectionKey (net.js:917:26)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
  </code></pre>
  
  <p>and when I tried to run my main program again I got the error </p>
  
  <pre><code>&gt; TypeError: Cannot read property 'port' of null
  </code></pre>
  
  <p>My question is, where are these background scripts? </p>
  
  <p>So far I have looked in all the obvious places including <code>package.json</code>'s directory the directory for <code>book_server.coffee</code> and in <code>node_modules</code> but with no luck.</p>