F1ATB forum
node.js won't start - Version imprimable

+- F1ATB forum (https://f1atb.fr/forum_f1atb)
+-- Forum : My F1ATB Forum (https://f1atb.fr/forum_f1atb/forum-1.html)
+--- Forum : Remote SDR (https://f1atb.fr/forum_f1atb/forum-2.html)
+--- Sujet : node.js won't start (/thread-360.html)



node.js won't start - DK1SI - 24-08-2024

Hello to you, 

Thanks Andrè for your big job to develop the Remote SDR. 

I have had some strange problems with your raspi V5 Image.  So I decided to get the newest Raspian for my Raspberry4 and do a manual installation. 

But now I have the Problem that Node.js wont be start atached I have the error message:
Did somebody now what could be the problem, where can I start to search for a solution? 
Unfortunatly I'm not firm with npm and Node.js. 

Many thanks in advance for your help. 

---------------------------------------------------------------------------------------------
root@RasPi:/remsdr# node Radio_Server.js
node:fs:2368
    return binding.writeFileUtf8(
                  ^

Error: EINVAL: invalid argument, write
    at Object.writeFileSync (node:fs:2368:20)
    at exportGpio (/remsdr/node_modules/onoff/onoff.js:18:8)
    at new Gpio (/remsdr/node_modules/onoff/onoff.js:172:36)
    at Object.<anonymous> (/remsdr/remsdr_modules/CPU.js:26:15)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18) {
  errno: -22,
  code: 'EINVAL',
  syscall: 'write'
}

Node.js v20.16.0

____________________________________


RE: node.js won't start - F1ATB - 25-08-2024

Due to evolutions in the libraries, some are now incompatibles.
Sorry for that. You need to use the image.
73
André