I’ve been following these instructions to get cli installed on MacOS.
I ran into the EACCES issue in the Troubleshooting section, then ran sudo chown -R $USER /usr/local/lib/node_modules to fix it.
The next time around I’m getting a different EACCES error.
Otherwise, it seems that /usr/local/bin is owned by root, not by your user. Not sure if that’s a deliberate choice (on my machine /usr/local/bin is owned by me), but I guess you have two options here.
Either:
Chown /usr/local/bin in the same way, so npm can link in there.
Install via sudo npm install edge-impulse-cli -g. Although this might screw up some npm permissions.
But thread carefully as these will modify some permissions.