How do I remove unused dependencies from package JSON?

How do I remove unused dependencies from package JSON?
Answer
To identify the unused package, just run npx depcheck in the project root directory. Next step is to uninstall the npm packages using
npm uninstall command. The post Remove unused npm modules from package.
 

Tìm kiếm

Back
Top