Permission denied while trying to install opencv4nodejs in Ubuntu
问题 I was trying to install opencv4nodejs in Ubuntu-20.04 using the following command and my node version is v12.19.0 sudo npm i -g opencv4nodejs But getting those errors info install installing opencv version 3.4.6 into directory: /usr/lib/node_modules/opencv4nodejs/node_modules/opencv-build/opencv ERR! Error: Command failed: mkdir -p opencv mkdir: cannot create directory ‘opencv’: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! opencv-build@0.1.9 install: `node ./install.js