I am about to prepare a webserver for "production-mode" (MEAN environment, talking about server-side), thus also creating the package.json file for my project. As it employs heaps of files and modules now, I am trying to figure out the easiest and most reliable way of defining which modules to consider for my package.json file:
1) Is there a way to tell Node.js to automatically create a package.json file containing all modules that I added manually since installation of Node.js (= crucial for my current Node.js project)?
2) If not, how can I list only those manually installed modules (in contrast to listing all modules using something like npm -g ls --json)?