Did you npm install someModule
without the --save
or didn't commit your new app to git
and accidently removed the package.json
file? This tool is used to generate a package.json
file from your node_modules
directory in such scenario.
[list -l --list] = list all node modules
[edit -e] = recreate the dependencies in package.json
[write -w] = write a package.npr.json file
[new -n] = write a new package.json file
Requires node version > 5
** Make sure you install with -g
flag
npm install node-package-recovery -g
git clone [email protected]:danbickford007/node_module_recovery.git
cd node_module_recovery
npm install
grunt
npr list
npr -l
npr --list
npr write
npr -w
npr edit
npr -e
npr new
npr -n
Install: grunt
Run tests within tests/
directory
./../node_modules/mocha/bin/mocha .