npm ERR! code ENOTEMPTY npm ERR! syscall rmdir

报错信息

npm ERR! code ENOTEMPTY
npm ERR! syscall rmdir
npm ERR! path D:\cmeim\chongtong\cmeim-web\node_modules.staging\swiper-6795cdfd
npm ERR! errno -4051
npm ERR! ENOTEMPTY: directory not empty, rmdir ‘D:\cmeim\chongtong\cmeim-web\node_modules.staging\swiper-6795cdfd’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2022-07-29T05_51_18_554Z-debug.log

在这里插入图片描述

解决方案

1、npm cache clean --force
2、将node_modules文件夹删除
3、npm i

在这里插入图片描述

成功结果

在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐