In this quick tutorial, I'll tell you how you can find the unused npm modules in your project and remove them.
Go to the project's root folder and run the below command,
It will display all the unused packages in your project.
To uninstall a module simply run the below command
npm uninstall <package>
yarn remove <package>