I've created a yeoman project by mistake on my windows box. Via explorer when I try to delete it I get an error saying that the path is too long.
But is there a script based solution?
You could use rimraf:
npm install -g rimraf
rimraf C:\code\yeoman-foo
You should be able to use the force switch. This script recursively removes any node_modules folder using PowerShell 3.
:> ls node_modules -Recurse -Directory | foreach { rm $_ -Recurse -Force }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With