copy dependencies and ignore node_modules.
purge modules.