friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
395 stars 161 forks source link

wifi.scan stopped working on Debian Buster in latest update (2.0.7) #79

Open JeffJassky opened 5 years ago

JeffJassky commented 5 years ago

wifi.scan() returns new error after updating from 2.0.5 to 2.0.7.

Expected Behavior

Should return list of networks

Current Behavior

Returns error Error: Command failed: nmcli --terse --fields active,ssid,bssid,mode,chan,freq,signal,security,wpa-flags,rsn-flags,device device wifi Error: Could not create NMClient object: Could not connect: No such file or directory.

Affected features

Possible Solution

Workaround: Use 2.0.5 for now

Steps to Reproduce (for bugs)

Install node-wifi 2.0.7 on Debian Buster and run wifi.scan()

Context

Just updating packages

Your Environment

friedrith commented 5 years ago

The error who have seems to come from directly from nmcli. I am not able to find which difference between 2.0.5 and 2.0.7 might have an impact like this. I am also not able to reproduce this error but I only have Ubuntu 18.04.2 to test linux.

Please can you provide the version of nmcli you are using with nmcli --version?