Error: EBUSY: resource busy or locked, write

Hello. I just started learning how to program Blynk. I have a problem. I installed Blynk on Orange Pi board on this instruction . I wrote this code in the js-file:

var Blynk = require(‘blynk-library’);
var Gpio = require (‘onoff’).Gpio;
var led = new Gpio(8, ‘out’);

var AUTH = ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’;

var blynk = new Blynk.Blynk(AUTH);

var v0 = new blynk.VirtualPin(0);

v0.on(‘write’, function(param) {

if (param[0] == ‘1’) {
} else {

  console.log('V0:', param[0]);


But when I start the js-file, terminal gives error:

Error: EBUSY: resource busy or locked, write
at Error (native)
at Object.fs.writeSync (fs.js:786:20)
at Object.fs.writeFileSync (fs.js:1343:24)
at new Gpio (/home/crab/crab-node/node_modules/onoff/onoff.js:53:10)
at Object. (/home/crab/crab-node/index.js:3:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

I tried to change the value of 8 to another, and there was always this error. And only when I write:

var led = new Gpio(20, ‘out’);

everything starts to work and the LED connected to pin 37 lights up. For any other gpio value other than 20, this error appears.

Probably best to start with a Google search as your issue is more likely a JS error, not a Blynk specific one.