如何删除 yeoman 在 Windows 中创建的文件夹?
How delete folders created by yeoman in Windows?
在 this guide 之后,执行命令 yo webapp
后,将创建一个名为 node_modules 的文件夹。我想删除该文件夹,但我无法使用命令行或 Windows 文件资源管理器执行此操作,因为路径太长。我怎样才能删除这个文件夹?
控制台错误消息:
rmdir : The specified path, file name, or both are too long. The fully
qualified file name must be less than 260 characters, and the
directory name must be less than 248 characters.
使用Extended Length Path syntax指定路径,例如\?\C:\Path\to\an\existing.file
.
另外,我成功地使用Total Commander删除了一个长路径的目录。
您可以使用 rimraf which is the unix command rm -rf
作为节点。:
$ rimraf <name of dir to delete>
您可以使用 npm 安装 rimraf:
$ npm install -g rimraf
感谢新的 open-source project released by Microsoft, you can easily delete paths that are too long using WinFile(在 WinXP 中引入)。
有时你必须去"Back to the Future"。这也会在 Microsoft 网络共享上删除太长的路径。
WinFile(为 Win10 编译)可在此处获得 https://github.com/Microsoft/winfile
要查找许多太长的路径并自动修复,我建议 Path Too Long Auto Fixer - 提供免费演示。
在 this guide 之后,执行命令 yo webapp
后,将创建一个名为 node_modules 的文件夹。我想删除该文件夹,但我无法使用命令行或 Windows 文件资源管理器执行此操作,因为路径太长。我怎样才能删除这个文件夹?
控制台错误消息:
rmdir : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
使用Extended Length Path syntax指定路径,例如\?\C:\Path\to\an\existing.file
.
另外,我成功地使用Total Commander删除了一个长路径的目录。
您可以使用 rimraf which is the unix command rm -rf
作为节点。:
$ rimraf <name of dir to delete>
您可以使用 npm 安装 rimraf:
$ npm install -g rimraf
感谢新的 open-source project released by Microsoft, you can easily delete paths that are too long using WinFile(在 WinXP 中引入)。 有时你必须去"Back to the Future"。这也会在 Microsoft 网络共享上删除太长的路径。
WinFile(为 Win10 编译)可在此处获得 https://github.com/Microsoft/winfile
要查找许多太长的路径并自动修复,我建议 Path Too Long Auto Fixer - 提供免费演示。