I have problem with npm install
. I want to install all dependencies used in my project. In package.json
there aren't any dependencies, but in my project files I have for example const mongo=require('mongoose')
and in another file const morgan=require('morgan')
etc.
I know that when typing npm i --save <dependency_name>
it will update my package.json
. But I would like to install all dependencies without typing their names explicitly anywhere.
Is there any way to install all dependencies used in the whole project, but which there aren't in package.json
?