Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

remove all node_modules folders recursively

//Find all Node Modules
find . -name 'node_modules' -type d -prune

//Remove Files
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
Comment

recursively delete node_modules

find . -name "node_modules" -type d -exec rm -rf '{}' +
Comment

delete all node_modules folders recursively windows

This is for windows  - type on the command line to list all node_modules folders:
For /d /r . %d in (node_modules) Do @IF EXIST "%d" echo %d

To delete all the listed folders:
For /d /r . %d in (node_modules) Do @IF EXIST "%d" del /Q "%d"

The /Q flag is "Quiet mode" - Does not ask if ok to delete on global wildcard
Comment

delete all node_modules folders recursively

Try https://github.com/voidcosmos/npkill

npx npkill
it will find all node_modules and let you remove them.
Comment

PREVIOUS NEXT
Code Example
Javascript :: check data type in javascript 
Javascript :: how to pass sequelize transaction to association helper method 
Javascript :: js add to array if not exists 
Javascript :: js toggle class 
Javascript :: js get parameters 
Javascript :: react native dimensions window vs screen 
Javascript :: get url in js 
Javascript :: nice react native shadow 
Javascript :: nested loops js 
Javascript :: javascript countdown timer 
Javascript :: js window.confirm 
Javascript :: javascript how to check if element is visible on screen 
Javascript :: javascript print random word from lsit 
Javascript :: javascript add line from file to array 
Javascript :: agregar clase en jquery 
Javascript :: jquery on click fade out element 
Javascript :: javascript strip 
Javascript :: remove element from array in usestate 
Javascript :: copy to clipboard jquery javascript 
Javascript :: reverse a word javascript 
Javascript :: js weakset 
Javascript :: javascript pass object by value 
Javascript :: reload page angular one time 
Javascript :: request entity too large 
Javascript :: eslint-disable-next-line 
Javascript :: react native responsive font 
Javascript :: js enums class 
Javascript :: onchange js 
Javascript :: substring method 
Javascript :: javascript check if string contains character 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =