installing firebase tools doesn’t work on mac

I install firebase-tools with npm
but terminal can’t find firebase-tools :(…
also I tried auto installing script “curl -sL https://firebase.tools | bash” but this also give me this error “This tool has encountered an error.”
what should i do?after I installed firebase tools
after typed command

Go to Source
Author: Dean97K