Remove complete angular project built with Yeoman

2019-07-11 14:24发布

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?

标签: yeoman
6条回答
乱世女痞
2楼-- · 2019-07-11 14:39

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
查看更多
倾城 Initia
3楼-- · 2019-07-11 14:42

Use this tool is a java tool no install requiered and it works perfect

PathToLongLinkSoftware

查看更多
唯我独甜
4楼-- · 2019-07-11 14:43

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
查看更多
等我变得足够好
5楼-- · 2019-07-11 14:45

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

查看更多
Viruses.
6楼-- · 2019-07-11 14:50

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

查看更多
The star\"
7楼-- · 2019-07-11 14:52

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.

查看更多
登录 后发表回答