sh: 1: node: Permission denied

前端 未结 7 551
闹比i
闹比i 2021-02-01 03:24

Tried to run this command on ubuntu 18.04

npm install -g pngquant-bin

but I got this error,

[..................] | fetchMetada         


        
7条回答
  •  长发绾君心
    2021-02-01 03:53

    you need root user permission, just add sudo keyword before the command and write your password

    sudo npm install -g pngquant-bin
    

提交回复
热议问题