ianperrin / MMM-NetworkScanner

A module for MagicMirror which determines the status of devices on the network based on their MAC or IP address
MIT License
107 stars 47 forks source link

ERR_INVALID_ARG_TYPE: The "file" argumetn must be of type string. Received null. #61

Open george-dilthey opened 2 years ago

george-dilthey commented 2 years ago

I installed according to instructions and am getting the below error. Any ideas? Running on Raspberry Pi 4, Debian Bullseye.

TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received null
    at validateString (internal/validators.js:120:11)
    at normalizeSpawnArguments (child_process.js:411:3)
    at spawn (child_process.js:547:16)
    at sudo (/opt/magic_mirror/modules/MMM-NetworkScanner/node_modules/sudo/lib/sudo.js:30:17)
    at Class.scanNetworkMAC (/opt/magic_mirror/modules/MMM-NetworkScanner/node_helper.js:43:19)
    at Class.socketNotificationReceived (/opt/magic_mirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
    at Socket.<anonymous> (/opt/magic_mirror/js/node_helper.js:109:11)
    at Socket.emit (events.js:314:20)
    at Socket.emitUntyped (/opt/magic_mirror/node_modules/socket.io/dist/typed-events.js:69:22)
    at /opt/magic_mirror/node_modules/socket.io/dist/socket.js:428:39 {
  code: 'ERR_INVALID_ARG_TYPE'
}