title: How do I list Node.js version and path currently being used in npm?
body: <p>I'm currently running into the same error as this Stackoverflow question had: <a href="https://stackoverflow.com/questions/36789889/syntaxerror-use-of-const-in-strict-mode">SyntaxError: Use of const in strict mode?</a>, although I'm getting it while trying to <a href="https://github.com/facebook/flux/tree/master/examples/flux-todomvc" rel="nofollow noreferrer">install Flux</a>.</p>
  
  <p>I've already updated my system's Node.js version with the commands shown in the linked Stackoverflow question.</p>
  
  <pre><code>npm cache clean -f
  sudo npm install -g n
  sudo n stable
  </code></pre>
  
  <p>When I run <code>node --version</code> I get the correct version, <code>v8.2.1</code>. However, when I install modules via npm, I still get warnings such as</p>
  
  <pre><code>npm WARN engine har-schema@1.0.5: wanted: {"node":"&gt;=4"} (current: {"node":"v0.10.25","npm":"1.3.10"})
  </code></pre>
  
  <p>...which suggests that npm is still using an old version of Node.</p>
  
  <p>Is there a way that I can find the version of Node seen by npm, and can I determine the directory where it is installed to?</p>