为什么在bash中运行firebase login --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:
这适用于在生产服务器上工作的项目,因此我没有etl用户的密码。当我安装Firebase时,我按照npm网站上的指南fix permissions,然后在全球范围内安装了Firebase:
npm install -g firebase firebase-tools