After installing globally run 'dependent' in your working dir. This will look up what node modules can be found inside node_modules and compile them into a dependencies.json in your working dir. Copy and paste into your package.json.