In windows, deleting node modules takes so much time and sometimes it makes my screen unresponsive. I googled for some soultion and found the below:
Install a npm package called npkill
with the command npm i -g npkill
.
After installing from the terminal go to the directory from which we want to delete the node modules and type npkill
.
The command prompt will list all the node modules and we can select the required folder.
After the secltion, you can press the Space key which will erase the directory in which the cursor is located.
To exit, q
, or Ctrl + c
.
What are your thoughts on this post?
I’d love to hear from you! Click this link to email me—I reply to every message!
Also use the share button below if you liked this post. It makes me smile, when I see it.