Surely you know this, you want to delete the node_modules on windows and you wait and wait and wait. I will show you how to delete it faster. The faster way is to delete the folder using the windows command line and the
RMDIR command. But the fastest way is to use the npm package "rimraf ". You have to install the package globally:
npm install rimraf -g
After that, you can delete the folder with the command
Admittedly, it is not very nice to constantly type this command. I have a solution for that as well. We add this command to the Windows Explorer context menu.
To do this, open
R). Then navigate to the following path.
If you are an administrator ==>
If you are a normal user ==>
Click on the shell folder with the right mouse and add a new key. The name of this key is then the name as it appears in the context menu. I have chosen for example
Delete FAST. For this folder, you create another key with the name
command (this name is mandatory). Then you edit the
default value and enter the following value
cmd /c "cd /d %1 && cd / && rimraf "%1""
Now when you right-click on your folder, you have this item:
ATTENTION: the folders and the content are permanently deleted, they do not end up in the recycle bin.
Happy Coding ;-)