question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: spawn nmcli ENOENT (Linux/Raspberry Pi)

See original GitHub issue

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

  • 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:open
  • Created 2 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
HighDeckcommented, Mar 1, 2022

Same behavior on Raspberry pi / Debian 11.6. Any update on this ?

0reactions
fostemancommented, Sep 1, 2022

Apparently, I have been lacking network-manager installed since I’m running on Armbian Lite

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry pi UNRECOGNIZED OS error · Issue #81 - GitHub
I'm trying to display networks to a user via a react application. Basically, show user current wifi router and allow them to switch...
Read more >
Error: spawn nm-multiarch ENOENT - Raspberry Pi Forums
Hi All, I recently solved an issue where I could not get a project to build on raspberry pi vs code for debugging....
Read more >
How do I debug "Error: spawn ENOENT" on node.js?
Run exe file with Child Process NodeJS. Node: child_process. spawn not working on Java even though it's in the path (ENOENT) spawn ENOENT...
Read more >
how to install express in console Code Example
zsh compinit: insecure directories, run compaudit for list. ... FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command....
Read more >
device-mapper-multipath security update
Details on how to use ULN or http://public-yum.oracle.com to apply this update are available at http://linux.oracle.com/applying_updates.html.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found