Error: spawn nmcli ENOENT (Linux/Raspberry Pi)
See original GitHub issueCannot scan (and possible also connect) for WiFi networks on Linux (Raspberry Pi)
Expected Behavior
Returning a list of networks wen calling wifi.scan()
Current Behavior
The following error emerges:
Error: spawn nmcli ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) { errno: -2, code: 'ENOENT', syscall: 'spawn nmcli', path: 'nmcli', spawnargs: [ '--terse', '--fields', 'active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags', 'device', 'wifi', 'list', 'ifname', 'wlan0' ], cmd: 'nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags device wifi list ifname wlan0' }
Affected features
- node API
- cli
Possible Solution
Steps to Reproduce (for bugs)
Run wifi.scan() on raspberry pi in node.js project
Your Environment
Raspberry Pi - Node 14
- OS: Rasbian
- node-wifi version ^2.0.15
- wifi card: (on linux, use command
lspci | egrep -i --color 'network|ethernet'
)
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (6 by maintainers)
Top GitHub Comments
Same behavior on Raspberry pi / Debian 11.6. Any update on this ?
Apparently, I have been lacking
network-manager
installed since I’m running onArmbian Lite