Firebase CLI 登录失败

时间:2021-01-28 03:10:44

标签: firebase-hosting firebase-cli

我想通过 Firebase 部署一个网站;但是,我不能使用firebase CLI,无论我使用firebase loginfirebase login --reauthfirebase login --no-localhost,还是其他命令都没有用。如果我使用 firebase login --no-localhost 命令,它会显示以下错误

? Paste authorization code here: (node:56671) UnhandledPromiseRejectionWarning: FirebaseError: Failed to make request to https://firebase-public.firebaseio.com/cli.json
    at Client.doRequest (/usr/local/lib/node_modules/firebase-tools/lib/apiv2.js:161:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:56671) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:56671) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

如果我粘贴凭据,它将显示凭据无效并要求我使用 firebase login --reauth 进行身份验证。

0 个答案:

没有答案
相关问题