You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法删除node_modules文件夹的技术求助(已尝试多种方案)

无法删除node_modules文件夹问题

我参考Dapp University Marketplace项目及配套教程完成了个人项目,由于操作中多次出错,反复执行npm install,导致产生多个包含node_modules的文件夹。现在尝试删除这些文件夹全部失败,已试过的方法包括:

  • 直接通过文件资源管理器删除
  • 通过VS Code删除
  • 使用npx rimraf node_modules命令,报错:errno: -4094, code: 'UNKNOWN', syscall: 'scandir'
  • 使用npkill工具,出现[ERROR]提示
  • 使用rmdir /s /q node_modules命令,报错:node_modules\@babel\COMPAT~1 - The directory is not empty. node_modules\HANDLE~1\lib - The directory is not empty. node_modules\TRUE-C~1\test\fixture - The directory is not empty. node_modules\xhr\VSCODE~1 - The directory is not empty.

内容的提问来源于stack exchange,提问作者Zero Two

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 05:14:55