As I started to develop my first nodejs express application, I added many packages with npm.
I would like to know if there is a way to generate a package.json
file containing all the current dependencies or the list of the current packages under the nodes_modules
directory.
Just run npm init
in the same directory as your project.
You'll be asked a list of questions (name, version, description, etc.) and once complete, it will generate a package.json
file with all of the dependencies as currently installed in the node_modules
directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With