Getting Error EBUSY: resource busy or locked

前端 未结 7 1489
南笙
南笙 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:09

    There are many answers on GitHub regarding this issue.

    • Some says npm cache clean this command executing on terminal solved the problem.

    • Others recommend to delete the entire directory your app is the folder in and re-install the packages and then try running the program.

    • Some also says that It is caused by the anti-malware software and recommend to disable it while running the program.

    GitHub issue link: https://github.com/npm/npm/issues/13461

    If it doesn't solve the issue, just change the GPIO pin to let's say 23 in coding and don't forget to physically replace LED from 4 to 23 too.

提交回复
热议问题