windows - 如何删除 yeoman 在 Windows 中创建的文件夹?

标签 windows directory yeoman windows-explorer

正在关注 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.

最佳答案

您可以使用 rimraf这是 unix command rm -rf 节点:

$ rimraf <name of dir to delete>

您可以使用 npm 安装 rimraf:

$ npm install -g rimraf

关于windows - 如何删除 yeoman 在 Windows 中创建的文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28995921/

相关文章:

bower - 咕噜声连线不接线一些 bower 组件

windows - Tesseract + opencv 3.0 + windows,文本模块尺寸小,链接错误

.net - 通过 SetSecurityDescriptor 设置 WMI ACL

windows - 无法在上下文 None 上使用 cuDNN, fatal error : cudnn. h:没有这样的文件或目录

applescript - 创建文件夹 Applescript

Python os.chdir() 似乎不起作用

windows - Vim 在每次保存后插入 _viminfo 文件

java - Java 中的包/目录约定

gruntjs - 使用 Yeoman/Grunt 项目运行 Apache

node.js - 使用 copyTpl 复制整个文件夹时重命名单个文件名