I've installed some packages via npm install $package
, without setting up a package.json
first.
Now I would like to create a package.json
file, but keep all installed packages as dependencies.
Simply running npm init
doesn't offer this option, can I achieve this automatically?