title: package.json -- How to add already installed packages in 'dependencies' and 'devDependencies' in package.json file after delete package.json?
body: <p>I have added many packages in my Project using <strong>npm</strong>.</p>
  
  <p>But after while cleaning my Project i was deleted my package.json by mistake.</p>
  
  <p>so for create new package.json file i have run command <code>nmp init</code>.</p>
  
  <p>now i got the package.json but in my package.json file is like below. </p>
  
  <pre><code>{
    "name": "name-will-be-here",
    "version": "0.0.1",
    "description": "description-will-be-here",
    "main": "gulpfile.js",
    " dependencies": {},
    "devDependencies": {},
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "",
    "license": "ISC"
  }
  </code></pre>
  
  <p>Is there any commands for fill the details like before it is...?</p>
  
  <p>but my Question is that...</p>
  
  <p><strong><h3>How can i get all details of <code>dependencies</code> and <code>devDependencies</code> which was already there before delete?</h3></strong> </p>