Deployment on Raspberry Pi4

Hi ,
I wanted to ask that whether I will be able to run my model on Rpi4 after deployment without any internet connection ??

Yes, see - this runs w/o internet connection once you’ve downloaded the model.

I tried deploying the model on Rpi4, I followed all the steps as stated in the documentations of edge impulse for deployment on Rpi. But I am getting error whenever I try to run edge-impulse-linux. The error : bash: edge-impulse-linux: command not found

I don’t know what else to do to solve it, Kindly help me out.


What’s the output of running on the Rpi?

Following is the error I got after installing the dependencies, Now when I open the terminal this is shown automatically.
nvm is not compatible with the npm config “prefix” option: currently set to “/home/pi/.npm-global”
Run npm config delete prefix or nvm use --delete-prefix v16.4.2 --silent to unset it.

After using:
sudo npm uninstall edge-impulse-linux -g
sudo npm install edge-impulse-linux -g --unsafe-perm
I got:
**npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see
npm WARN deprecated request@2.88.0: request has been deprecated, see
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See for details.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (
/opt/nodejs/bin/edge-impulse-linux -> /opt/nodejs/lib/node_modules/edge-impulse-linux/build/cli/linux/linux.js
/opt/nodejs/bin/edge-impulse-linux-runner -> /opt/nodejs/lib/node_modules/edge-impulse-linux/build/cli/linux/runner.js
/opt/nodejs/bin/edge-impulse-camera-debug -> /opt/nodejs/lib/node_modules/edge-impulse-linux/build/cli/linux/camera-debug.js

> sharp@0.29.1 install /opt/nodejs/lib/node_modules/edge-impulse-linux/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Using cached /root/.npm/_libvips/
prebuild-install WARN install No prebuilt binaries found (target=5 runtime=napi arch=arm libc= platform=linux)
make: Entering directory '/opt/nodejs/lib/node_modules/edge-impulse-linux/node_modules/sharp/build’
** CC(target) Release/…/node-addon-api/nothing.o**
** AR(target) Release/…/node-addon-api/nothing.a**
** COPY Release/nothing.a**
** TOUCH Release/**
** CXX(target) Release/**
** CXX(target) Release/**
** CXX(target) Release/**
** CXX(target) Release/**
** CXX(target) Release/**
** CXX(target) Release/**
** CXX(target) Release/**
** SOLINK_MODULE(target) Release/**
** COPY Release/sharp-linux-armv6.node**
make: Leaving directory '/opt/nodejs/lib/node_modules/edge-impulse-linux/node_modules/sharp/build’
npm WARN tsargs@1.4.1 requires a peer of typescript@^3.1.6 but none is installed. You must install peer dependencies yourself.

+ edge-impulse-linux@1.3.0
added 347 packages from 415 contributors in 112.523s**

and now using : edge-impulse-linux
again I am getting :bash: edge-impulse-linux: command not found.

Hi @rahmad, it seems to have installed in


But /opt/nodejs/bin is not in your PATH. Either add it in your PATH or run:

sudo ln -s /opt/nodejs/bin/edge-impulse-linux -> /usr/local/bin/edge-impulse-linux ->
sudo ln -s /opt/nodejs/bin/edge-impulse-linux-runner /usr/local/bin/edge-impulse-linux-runner
sudo ln -s /opt/nodejs/bin/edge-impulse-camera-debug /usr/local/bin/edge-impulse-camera-debug

To symlink them to /usr/local/bin which probably is in your path already…