visual studio code - EBUSY error on npm run watch (Laravel Vite) when modifying SCSS – Need to restart manually - Stack Overflow

admin2025-04-18  0

  • Issue I'm facing an issue where npm run watch (Laravel Vite) crashes every time I modify and save an SCSS file. The error message shows that a file is locked (EBUSY error), forcing me to manually restart the watcher every time to apply changes.

This is error I get every time watcher reboots, and I must also say that locked files change. It's not always cleave-phone.lt.js. :

EBUSY: resource busy or locked, unlink 'C:\...\cleave-phone.lt.js'

I’ve attempted several fixes, but none have worked permanently:

  • Disabled Windows Defender (Real-time protection & folder exclusions added).
  • Deleted public/build/ and rebuilt it.
  • Cleared Temp folder (C:\Users...\AppData\Local\Temp).
  • Restarted terminal and system.
  • Ran npm run watch with Administrator privileges.
  • Also saw that disabling Java(TM) Platform SE Binary solved problem for some, but I dont even have that process running in task manager.

How can I fix this permanently so Vite doesn’t crash, and I don’t have to restart npm run watch manually after every change? Any workarounds or configurations that could help?

Thanks in advance!

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744969477a277399.html

最新回复(0)