-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: spawn nmcli ENOENT (Linux/Raspberry Pi) #167
Comments
Hello, |
Out of the box, nothing happens. It just waits for the next command. But if I do the following: Then I get a list of networks in the form as the fields in your command. The errors still persists in the program. |
I have tried to run the nmcli command via the node CLI, this seems where the error stems from: So via Bash the command seems to work as intended, but when done via a node environment it doesn't work. |
I see several possibilities:
I am currently working on a new version to stabilize these commands on linux. Can you follow these steps on your raspbian to use this new version currently in development:
Check if you have any good result or another fail. |
This seems to work as I get the same list as mentioned earlier! |
Nice 👍 . I will publish a beta version using this new implementation very soon. I might ask you to test it to be sure it is solving your problem once integrating. |
Ok! Thanks in advance. Hit me up when the beta is released. I will test it with dhcpcd enabled, and disabled then. |
Hi, an alpha is available on npm. You can install it using the command: |
Thank you! I have tested it. I will try to isolate the problem better soon. I will research this further. I can imagine more people are trying to do the same. |
I didn't know you were using Electron also has several threads ( |
Ok, I have tried a couple of different solutions. No luck so far in the past couple of weeks. I have tried to change the process.env.PATH The fix-path package didn't build, so I tried to recreate the fix from the source. Do you have another insight maybe? |
From my experience, the best way to locate a problem is to split the situation into several pieces. First maybe you can isolate your code using node-wifi into a single file. Maybe could you try to run this code on the same hardware and OS but using node.js environment? PS: don't hesitate to share your progress there so that we can iterate faster. |
Same behavior on Raspberry pi / Debian 11.6. Any update on this ? |
Issue still persists, any updates ? I'm running my wlan0 in Master mode |
Apparently, I have been lacking |
Cannot 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
Possible Solution
Steps to Reproduce (for bugs)
Run wifi.scan() on raspberry pi in node.js project
Your Environment
Raspberry Pi - Node 14
lspci | egrep -i --color 'network|ethernet'
)The text was updated successfully, but these errors were encountered: