Due to its folder nesting Windows can’t delete the folder as its name is too long. To solve this, install RimRaf:

npm install rimraf -g 1 npm install rimraf - g

and delete the node_modules folder easily with:

rimraf node_modules 1 rimraf node_modules

edit: If you happen to get an “error” like this:

C:\Users\Nikola\Desktop>npm install -g rimraf C:\Users\Nikola\AppData\Roaming

pm\rimraf -> C:\Users\Nikola\AppData\Roaming

pm

ode_modules\rimraf\bin.js npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming

pm

ode_modules\generator-ionic requires cordova@'^4.2.0' but will load npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming

pm

ode_modules\cordova, npm WARN unmet dependency which is version 5.1.1 npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming

pm

ode_modules\bower

ode_modules\bower-registry-client requires request@'~2.51.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency C:\Users\Nikola\AppData\Roaming

pm

ode_modules\bower

ode_modules\fstream-ignore requires fstream@'^1.0.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm ERR! peerinvalid The package node-inspector does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer strong-cli@2.6.4 wants node-inspector@~0.7.0 npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\NodeJS\\\

ode.exe" "C:\\NodeJS\

ode_modules\

pm\\bin\

pm-cli.js" "install" "-g" "rimraf" npm ERR! cwd C:\Users\Nikola\Desktop npm ERR! node -v v0.10.36 npm ERR! npm -v 1.4.28 npm ERR! code EPEERINVALID npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\Nikola\Desktop

pm-debug.log npm ERR! not ok code 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 C : \ Users \ Nikola \ Desktop > npm install - g rimraf C : \ Users \ Nikola \ AppData \ Roaming \ npm \ rimraf -> C : \ Users \ Nikola \ AppData \ Roaming \ npm \ node_modules \ rimraf \ bin . js npm WARN unmet dependency C : \ Users \ Nikola \ AppData \ Roaming \ npm \ node_modules \ generator - ionic requires cordova @ '^4.2.0' but will load npm WARN unmet dependency C : \ Users \ Nikola \ AppData \ Roaming \ npm \ node_modules \ cordova , npm WARN unmet dependency which is version 5.1.1 npm WARN unmet dependency C : \ Users \ Nikola \ AppData \ Roaming \ npm \ node_modules \ bower \ node_modules \ bower - registry - client requires request @ '~2.51.0' but will load npm WARN unmet dependency undefined , npm WARN unmet dependency which is version undefined npm WARN unmet dependency C : \ Users \ Nikola \ AppData \ Roaming \ npm \ node_modules \ bower \ node_modules \ fstream - ignore requires fstream @ '^1.0.0' but will load npm WARN unmet dependency undefined , npm WARN unmet dependency which is version undefined npm ERR ! peerinvalid The package node - inspector does not satisfy its siblings ' peerDependencies requirements ! npm ERR ! peerinvalid Peer strong - cli @ 2.6.4 wants node - inspector @ ~ 0.7.0 npm ERR ! System Windows _ NT 6.1.7601 npm ERR ! command "C:\\NodeJS\\\

ode.exe" "C:\\NodeJS\

ode_modules\

pm\\bin\

pm-cli.js" "install" "-g" "rimraf" npm ERR ! cwd C : \ Users \ Nikola \ Desktop npm ERR ! node - v v0 . 10.36 npm ERR ! npm - v 1.4.28 npm ERR ! code EPEERINVALID npm ERR ! npm ERR ! Additional logging details can be found in : npm ERR ! C : \ Users \ Nikola \ Desktop \ npm - debug . log npm ERR ! not ok code 0

Don’t panic :), just try to run rimraf instead, as noted above. In most cases, all will be okay and you’ll be able to use it without a problem. If not, head to the comments, and we’ll take care of it together! For those who don’t care much about comments, here’s the post in which I address this node-inspector issue.