Remove all node_modules choose the dir and run... mac / linux find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; windows prompt FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d"