rm -rf node-modules does the job too
rm -rf node-modules
No it does not :-). It is rm -rf node_modules does
rm -rf node_modules
npx npkill can recursively traverse your directories So you can use it from e.g. your HOME folder and then remove every unnecessary node_modules in every directory/project
npx npkill
So can rm -rf **/node_modules
This will remove everything without any control With npkill you can select each node_modules individually Try it and you will see what I mean
node_modules
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
rm -rf node-modules
does the job tooNo it does not :-). It is
rm -rf node_modules
doesnpx npkill
can recursively traverse your directoriesSo you can use it from e.g. your HOME folder and then remove every unnecessary node_modules in every directory/project
So can rm -rf **/node_modules
This will remove everything without any control
With npkill you can select each
node_modules
individuallyTry it and you will see what I mean