An easy way to clean all the node_modules
folders in your projects. This script will delete all the node_modules
folders in the current directory and all the subdirectories.
An alternative to npkill.
-
Clone the repository
git clone https://github.com/i-m-afk/Node-Modules-Cleaner
-
cd Node-Modules-Cleaner
-
Run
npm install
ornpm i
to install the dependencies -
Run
npm start
to start the script -
Go to search and input the directory you want to search in (e.g. D://Projects)
-
Wait for the script to finish searching
-
Use
space
to select andenter
to confirm the folders to delete
Tested only on windows. Use at your own risk.