title: Import existing file or directory into intellij idea project
body: <p>I'm using Intellij Idea 15.0.3. I tried to use it to develop a MEAN stack application.</p>
  
  <p>I first <code>File -&gt; New -&gt; Project -&gt; Empty Project</code> to create an empty project. Then in Intellij Idea's terminal I type <code>npm init -y</code>, a <code>package.json</code> is generated. However, when I tried to edit this generated <code>package.json</code>, a window pops up, saying: <code>These files do not belong to the project</code>, and asks me if I want to edit it anyway.</p>
  
  <p>Also, after I edited the <code>package.json</code>, I run <code>npm install</code> in the terminal, a new directory <code>node_modules</code> is generated, but it's not shown in the Intellij Idea. </p>
  
  <p>How can I add <code>package.json</code> and <code>node_modules</code> into project? Do I have to manually created file or folder through Intellij Idea project UI and give up using its terminal?</p>