Edge-impulse-daemon -Error

After installing Edge impulse cli , When I run the command - edge-impulse-daemon, I am facing this issue

C:\Users\Manivannan>edge-impulse-daemon
C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\bindings\bindings.js:135
throw err;
^

Error: Could not locate the bindings file. Tried:
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\build\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\build\Debug\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\build\Release\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\out\Debug\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\Debug\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\out\Release\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\Release\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\build\default\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\compiled\14.15.4\win32\x64\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\addon-build\release\install-root\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\addon-build\debug\install-root\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\addon-build\default\install-root\bindings.node
→ C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\lib\binding\node-v83-win32-x64\bindings.node
at bindings (C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\bindings\bindings.js:126:9)
at Object. (C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\lib\win32.js:1:36)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules@serialport\bindings\lib\index.js:6:22)
at Module._compile (internal/modules/cjs/loader.js:1063:30) {
tries: [
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build\Debug\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build\Release\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\out\Debug\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\Debug\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\out\Release\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\Release\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\build\default\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\compiled\14.15.4\win32\x64\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\addon-build\release\install-root\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\addon-build\debug\install-root\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\addon-build\default\install-root\bindings.node’,
‘C:\Users\Manivannan\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\@serialport\bindings\lib\binding\node-v83-win32-x64\bindings.node’
]
}

@Mani could you post the output of

npm uninstall -g edge-impulse-cli
npm install -g edge-impulse-cli

Hey @janjongboom , the issue get resolved , when I upgraded the Visual studio C++ to the latest version. Thank you

1 Like

hey what is your visual studio version
which version is suitable to run edge impulse daemon command

internal/modules/cjs/loader.js:883
throw err;
^

Error: Cannot find module ‘C:\Users\khush\AppData\Roaming\npm\node_modules\edge-impulse-cli\build\cli\daemon.js’
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
code: ←[32m’MODULE_NOT_FOUND’←[39m,
requireStack: []

i am still getting these errors what to do

Hi @01fe20bec237,

It looks like the Edge Impulse CLI was not correctly installed. Please try the steps found on this thread: Cant find data forwarder

now i am getting these errors continously even after updating the edge impulse cli

[SER] Connecting to COM5
[SER] Serial is connected, trying to read config…
[SER] Failed to get info off device Timeout when waiting for > (timeout: 5000) onConnected
[SER] Serial is connected, trying to read config…
[SER] Failed to get info off device Timeout when waiting for > (timeout: 5000) onConnected
[SER] Serial is connected, trying to read config…
[SER] Failed to get info off device Timeout when waiting for > (timeout: 5000) onConnected
[SER] Serial is connected, trying to read config…

Hello @01fe20bec237,
Did you uploaded the Edge Impulse firmware to your device correctly? Which hardware target are you using by the way?
The issue can also come from a bad usb cable.

Best,

Louis