简体   繁体   中英

Unable to delete node_modules folder

I am trying to delete the node modules folder from my project so that I can rerun npm i as there were errors when I was running my npm scripts (I think node_modules corrupted), but I don't seem to be able to.

I've tried:

  • Deleting via right clicking in Windows explorer. This just doesn't do anything.
  • In VS Code right clicking and selecting 'Delete Node Modules', which produces the following message: 在此处输入图像描述

I think the node modules file has corrupted - there only seems to be 3 folders in there, all of which I can't delete. 在此处输入图像描述

If I run npm i I get the following: 在此处输入图像描述

Try to reboot windows with SAFE MOOD . I face the same issue on windows 10. I could delete it when I have been in a safe mood on windows.

Don't know really an issue on windows or my hard drive.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM