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
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.