Skip to main content

Command Palette

Search for a command to run...

Remove unused npm modules in less than 30 seconds!

Published
1 min read
Remove unused npm modules in less than 30 seconds!

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,

npx depcheck

It will display all the unused packages in your project.

To uninstall a module simply run the below command

npm uninstall <package>

or

yarn remove <package>
V

This is cool. Thanks for sharing.

1
M

Glad if it helped you

More from this blog

Manitej Pratha's Blog

20 posts

React Developer. Full-time student.