rimraf node_modules 1

rimraf node_modules

// unix
rm -rf node_modules
// windows
npx rimraf ./**/node_modules

Here is what the above code is Doing:
1. We’re using the npx command to run the rimraf package.
2. We’re passing the rimraf package the path to the node_modules folder.
3. We’re using the ** wildcard to tell rimraf to delete all node_modules folders in the current directory and all subdirectories.

Similar Posts