title: Different node version for different projects, is there a way of telling node which version to use?
body: <p>I have a pretty common (i guess) problem. Many of my projects utilize nodejs, some for business logic, others only for some building task.</p>
  
  <p>I need to have different runtimes in different projects, one of my electron apps requires node 7.10.0, a typical build suite requires node 8.x.</p>
  
  <p>Now i know - i can use <code>sudo n 7.10.0</code> or <code>sudo n latest</code> to switch the runtime globally on my computer (For those, who dont know this - have a look at <a href="https://www.npmjs.com/package/n" rel="noreferrer">"n"</a>)</p>
  
  <p>Anyway, IMO this is not so convenient (some times, i need to rebuild all the modules after switching versions, often i forget to switch and so on). Is there a way of telling node which interpreter to use? Can i use a <code>.npmrc</code> file in a project directory to force a specific nodejs version within that subdirectory?</p>
  
  <p>I searched exactly for this (npmrc node version) but was not lucky enough to find something.</p>