Tried to run this command on ubuntu 18.04
npm install -g pngquant-bin
but I got this error,
[..................] | fetchMetada
in fact, npm
can't use root
account to install anything. if you use root
account, npm
will create a non-permission account to install. in this case, if the package need to execute writeFile
or other operation which need permission, the error node: Permission denied
will be raised.
so, you can choose optional arbitrary under:
npm install