Remove complete angular project built with Yeoman

房东的猫 提交于 2019-12-11 01:15:43

问题


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. :)



来源:https://stackoverflow.com/questions/20463598/remove-complete-angular-project-built-with-yeoman

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!