7

Sometimes when I try to launch the angular-cli command :

ng build --app myApplication -w 

I get the following error :

EBUSY: resource busy or locked, unlink 'C:\...\inline.bundle.js'

Any idea to overcome this problem?

Brahim LAMJAGUAR
  • 1,254
  • 5
  • 19
  • 28

2 Answers2

24

I had the same problem with google-services.json when trying to deploy the app to the device.

EBUSY: resource busy or locked, unlink 'C:\...\google-services.json'

Solution: Open task manager on windows and kill the Java(TM) Platform SE Binary process in task manager.

Carlos Silva
  • 351
  • 3
  • 7
1

here is a better workaround (bash on windows)

# for some reason keep getting UBUSY error so kill process
echo "killing any java.exe tasks"
cmd '/C TASKKILL /f /im java.exe'
Rhubarb65
  • 323
  • 2
  • 11