Skip to content

find and delete forgotten/ old node_modules folders and free storage quickly

License

Notifications You must be signed in to change notification settings

i-m-afk/Node-Modules-Cleaner

Repository files navigation

node_modules Cleaner

Image

Description

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.

Usage

  1. Clone the repository

        git clone https://github.com/i-m-afk/Node-Modules-Cleaner
  2. cd Node-Modules-Cleaner

  3. Run npm install or npm i to install the dependencies

  4. Run npm start to start the script

  5. Go to search and input the directory you want to search in (e.g. D://Projects)

  6. Wait for the script to finish searching

  7. Use space to select and enter to confirm the folders to delete

Warning ⚠️

Tested only on windows. Use at your own risk.