title: Create a React app with IntelliJ IDEA
body: <p>I am creating my first React app in IntelliJ IDEA by following <a href="https://www.jetbrains.com/help/idea/react.html" rel="nofollow noreferrer">these instructions</a>. After following the New Project Wizard, I get the following error:</p>
  
  <pre><code>/usr/bin/node /usr/local/bin/index.js untitled
  module.js:472
      throw err;
      ^
  
  Error: Cannot find module '/usr/local/bin/index.js'
      at Function.Module._resolveFilename (module.js:470:15)
      at Function.Module._load (module.js:418:25)
      at Module.runMain (module.js:605:10)
      at run (bootstrap_node.js:427:7)
      at startup (bootstrap_node.js:151:9)
      at bootstrap_node.js:542:3
  Done
  </code></pre>
  
  <p>Why is it looking in <code>/usr/local/bin/</code>? And where should it be looking instead? How do I configure IntelliJ to do this correctly?</p>
  
  <p>P.S. I have an IntelliJ IDEA Ultimate license and installed the NodeJS plugin. I have NodeJS 7.10.1 and npm 5.4.2 installed. I also installed <code>create-react-app</code> with npm.</p>
  
  <p>Note: I can run <code>create-react-app</code> (version 1.4.0) from the command line without any error.</p>