i used yeoman to scaffolding angular project structure, but now i have problem to remove all contents under the root folder, there's this "node_modules" folder, i can't delete it. My OS is win7, does anybody know how to delete the project completely?
问题:
回答1:
I encountered this same issue when I tried to remove a node based application on my own Windows 7 box. I used this tool to remove the folder.
http://www.osmstudios.com/projects/path-too-long
Its written in Java so that is the only requirement. Its free and open source.
https://github.com/DawsonG/PathTooLong
回答2:
This can be easily accomplished using the in-built Windows tool called robocopy which basically clones one directory into another. Create a new empty directory in the same location and use robocopy as shown below.
mkdir new_dir
robocopy /MIR new_dir long_name_dir
回答3:
Create a mapping to a drive letter.
subst x: C:\Folder1\Folder2\Folder3\Folder4\Folder5
Then go to x: and delete the files (they now have a smaller path)
Next delete the mapping
subst x: /D
回答4:
Use this tool is a java tool no install requiered and it works perfect
PathToLongLinkSoftware
回答5:
When try to delete, windows prompt a dialog saying: the folder contains items whose name is too long for recycle bin. Win7 can't handle this, you can use 7-zip's file manager to delete them.
回答6:
if you have winrar installed in your pc then right click your app folder, click 'add to archive' option then tick the 'delete files after archiving', then delete the archived file. :)