sh: 1: node: Permission denied

前端 未结 7 610
闹比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:51

    Got the same error sh: 1: node: Permission denied

    So this worked for me

    npm config set user 0
    npm config set unsafe-perm true
    

提交回复
热议问题