Getting Error EBUSY: resource busy or locked

前端 未结 7 1542
南笙
南笙 2021-02-15 15:41

Trying to run a Nodejs app to test Raspberry 3 B + Gpio Onoff Module but when i am trying to run the app getting this Error

fs.js:114
throw err;

Error: EBUSY: r         


        
7条回答
  •  时光取名叫无心
    2021-02-15 16:06

    I know this is barley advice since its so obvious but I spent over an hour on this then restarted my computer, problem fixed!

    just a reminder the most obvious solutions are sometimes the right solutions.

    All the other solutions posted about this problem didnt work for me. Maybe because my problem was a log file was being locked which prevented me from using npm at all. The log file didn't even show up in the directory it was supposed to be in.

提交回复
热议问题