I\'m trying to build a docker image with a global install of firebase-tools and angular-cli. I\'m building the same image for two versions of node: 6.x (LTS bor
Use the --unsafe-perm flag:
--unsafe-perm
npm install --quiet --no-progress --unsafe-perm -g @angular/cli@latest firebase-tools
I think that's still better than setting the npm user permanently to root. You can use --unsafe-perm only with the packages which cause problem
npm