Unable to install dependencies for raspberry pi

pi@raspberrypi:~ $ npm config set user root && sudo npm install edge-impulse-linux -g --unsafe-perm

when the above line is executed, it is showing
idealTree:lib:sill idealTree buildDeps

and getting stuck.

Hi Jayanth,

I think this may be a generic npm issue - and I was not able to reproduce the issue myself on a new rpi4, but from a cursory look at the error message, have you tried:

npm cache clear --force
rm ./package-lock.json

This looks like it commonly clears this type of error

Thanks for the reply, when should I execute those lines?

Just try running both of those right away, then retry the installation instructions from the guide.