I was trying to install opencv4nodejs
in Ubuntu-20.04
using the following command and my node version is v12.19.0
sudo npm
1.Running npm install with sudo might be causing a permissions problem. You could try completely removing the node_modules directory and re-running npm install it without sudo.
Also make sure you have permission to write to the directory you're installing in?
If it still doesn't work plz follow this : sudo npm install -g opencv4nodejs --unsafe-perm=true --allow-root