Permission denied while trying to install opencv4nodejs in Ubuntu

后端 未结 2 411
情书的邮戳
情书的邮戳 2021-01-26 09:36

I was trying to install opencv4nodejs in Ubuntu-20.04 using the following command and my node version is v12.19.0

sudo npm          


        
2条回答
  •  走了就别回头了
    2021-01-26 10:17

    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.

    1. Also make sure you have permission to write to the directory you're installing in?

    2. If it still doesn't work plz follow this : sudo npm install -g opencv4nodejs --unsafe-perm=true --allow-root

提交回复
热议问题