Install Edge Impulse

I am trying to install edge impulse on a Mac and I am getting this error:

12 packages are looking for funding

run npm fund for details

6 vulnerabilities (5 moderate, 1 high)

To address all issues (including breaking changes), run:

npm audit fix --force

I am able to run edge-impulse-daemon but edge-impulse-data-forwarder says command not found

Is there a way to fix this?

Hi @Mario50,

Those are just warnings on packages. Though it is strange you can run the daemon but not the data-forwarder. Could you paste the results of the following commands here?

ls -l /usr/local/bin/edge*      
ls -l /usr/local/lib/node_modules/edge-impulse-cli/build/cli

Aurelien

Yes @aurel,

lrwxr-xr-x 1 mario admin 56 Dec 15 16:37 /usr/local/bin/edge-impulse-blocks -> …/lib/node_modules/edge-impulse-cli/build/cli/blocks.js
lrwxr-xr-x 1 mario admin 56 Dec 15 16:37 /usr/local/bin/edge-impulse-daemon -> …/lib/node_modules/edge-impulse-cli/build/cli/daemon.js
lrwxr-xr-x 1 mario admin 64 Dec 15 16:37 /usr/local/bin/edge-impulse-data-forwarder -> …/lib/node_modules/edge-impulse-cli/build/cli/data-forwarder.js
lrwxr-xr-x 1 mario admin 68 Dec 15 16:37 /usr/local/bin/edge-impulse-framebuffer2jpg -> …/lib/node_modules/edge-impulse-cli/build/cli/framebuffer-to-jpg.js
lrwxr-xr-x 1 mario admin 61 Dec 15 16:37 /usr/local/bin/edge-impulse-run-impulse -> …/lib/node_modules/edge-impulse-cli/build/cli/run-impulse.js
lrwxr-xr-x 1 mario admin 58 Dec 15 16:37 /usr/local/bin/edge-impulse-uploader -> …/lib/node_modules/edge-impulse-cli/build/cli/uploader.js

total 712
-rwxr-xr-x 1 mario wheel 28196 Dec 15 16:37 blocks.js
-rw-r–r-- 1 mario wheel 19814 Dec 15 16:37 blocks.js.map
-rw-r–r-- 1 mario wheel 3055 Dec 15 16:37 can-flash-serial.js
-rw-r–r-- 1 mario wheel 1433 Dec 15 16:37 can-flash-serial.js.map
-rw-r–r-- 1 mario wheel 1331 Dec 15 16:37 cbor2json.js
-rw-r–r-- 1 mario wheel 1333 Dec 15 16:37 cbor2json.js.map
-rw-r–r-- 1 mario wheel 5125 Dec 15 16:37 check-new-version.js
-rw-r–r-- 1 mario wheel 5070 Dec 15 16:37 check-new-version.js.map
-rw-r–r-- 1 mario wheel 14368 Dec 15 16:37 config.js
-rw-r–r-- 1 mario wheel 11459 Dec 15 16:37 config.js.map
-rwxr-xr-x 1 mario wheel 30950 Dec 15 16:37 daemon.js
-rw-r–r-- 1 mario wheel 24436 Dec 15 16:37 daemon.js.map
-rwxr-xr-x 1 mario wheel 25669 Dec 15 16:37 data-forwarder.js
-rw-r–r-- 1 mario wheel 21299 Dec 15 16:37 data-forwarder.js.map
drwxr-xr-x 6 mario wheel 192 Dec 15 16:37 eta-flash-tool
-rw-r–r-- 1 mario wheel 2393 Dec 15 16:37 find-serial.js
-rw-r–r-- 1 mario wheel 2040 Dec 15 16:37 find-serial.js.map
-rwxr-xr-x 1 mario wheel 4356 Dec 15 16:37 framebuffer-to-jpg.js
-rw-r–r-- 1 mario wheel 3920 Dec 15 16:37 framebuffer-to-jpg.js.map
-rw-r–r-- 1 mario wheel 1025 Dec 15 16:37 get-ips.js
-rw-r–r-- 1 mario wheel 942 Dec 15 16:37 get-ips.js.map
drwxr-xr-x 8 mario wheel 256 Dec 15 16:37 himax-flash-tool
-rw-r–r-- 1 mario wheel 5009 Dec 15 16:37 init-cli-app.js
-rw-r–r-- 1 mario wheel 4130 Dec 15 16:37 init-cli-app.js.map
-rw-r–r-- 1 mario wheel 115 Dec 15 16:37 iwebsocket.js
-rw-r–r-- 1 mario wheel 115 Dec 15 16:37 iwebsocket.js.map
-rw-r–r-- 1 mario wheel 14609 Dec 15 16:37 make-image.js
-rw-r–r-- 1 mario wheel 12503 Dec 15 16:37 make-image.js.map
-rwxr-xr-x 1 mario wheel 7301 Dec 15 16:37 run-impulse.js
-rw-r–r-- 1 mario wheel 5923 Dec 15 16:37 run-impulse.js.map
-rw-r–r-- 1 mario wheel 2936 Dec 15 16:37 serial-connector.js
-rw-r–r-- 1 mario wheel 3053 Dec 15 16:37 serial-connector.js.map
-rwxr-xr-x 1 mario wheel 16117 Dec 15 16:37 uploader.js
-rw-r–r-- 1 mario wheel 14268 Dec 15 16:37 uploader.js.map

Everything seems to be correctly installed so edge-impulse-data-forwarder should work too. You can also try going into the /usr/local/bin directory and run ./edge-impulse-data-forwarder.

Aurelien

@aurel this is what I got

Marios-MBP:~ mario$ /usr/local/bin

-bash: /usr/local/bin: is a directory

Marios-MBP:~ mario$ ./edge-impulse-data-forwarder

-bash: ./edge-impulse-data-forwarder: No such file or directory

@Mario50,
you need to use the cd command to change directory:

cd /usr/local/bin
./edge-impulse-data-forwarder 
1 Like

Thank You It worked!

This also worked for me but I had to locate the executables in my /opt/homebrew/bin/… directory.