Bash `firebase登录`要求输入sudo密码

Bash `firebase登录`要求输入sudo密码,bash,firebase,permissions,Bash,Firebase,Permissions,为什么在bash中运行firebase登录--no localhost会导致出现提示输入sudo密码?以下是我运行命令时的输出: ? Allow Firebase to collect anonymous CLI usage information? No Visit this URL on any device to log in: <auth_url_here> ? Paste authorization code here: [sudo] password for etl:

为什么在bash中运行
firebase登录--no localhost
会导致出现提示输入sudo密码?以下是我运行命令时的输出:

? Allow Firebase to collect anonymous CLI usage information? No

Visit this URL on any device to log in: <auth_url_here>

? Paste authorization code here: [sudo] password for etl:

Firebase尝试在您登录时使用库打开浏览器。看起来这就是引发sudo请求的原因。也许你可以在回购协议上提出一个问题,看看是否有共同的解决方案?我想这是最好的办法。无论是否设置了
--no localhost
标志,我都会收到sudo提示。
npm install -g firebase firebase-tools