npm firebase cli не использует правильные учетные данные - PullRequest
0 голосов
/ 08 мая 2020

После успешной аутентификации с помощью firebase cli v8.2 (узел 14.12) я не могу подключиться к firebase:

На другом компьютере / сети он работает нормально. Есть идеи, где я могу это решить? уже пробовал переустановить firebase-tools, обновить Node.js

Вывод терминала:


+  Success! Logged in as adriang@chortitzer.com.py
PS C:\Users\adriang\Documents\IonicProjects\chortitzer-agro> firebase use --add

Error: Failed to list Firebase projects. See firebase-debug.log for more info.

firebase-debug.log:

[debug] [2020-05-08T15:27:24.385Z] ----------------------------------------------------------------------
[debug] [2020-05-08T15:27:24.388Z] Command:       C:\Program Files\nodejs\node.exe C:\Users\adriang\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js use --add
[debug] [2020-05-08T15:27:24.389Z] CLI Version:   8.2.0
[debug] [2020-05-08T15:27:24.389Z] Platform:      win32
[debug] [2020-05-08T15:27:24.389Z] Node Version:  v14.2.0
[debug] [2020-05-08T15:27:24.390Z] Time:          Fri May 08 2020 11:27:24 GMT-0400 (hora estándar de Paraguay)
[debug] [2020-05-08T15:27:24.390Z] ----------------------------------------------------------------------
[debug] [2020-05-08T15:27:24.391Z] 
[debug] [2020-05-08T15:27:24.405Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2020-05-08T15:27:24.405Z] > authorizing via signed-in user
[debug] [2020-05-08T15:27:24.410Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2020-05-08T15:27:24.410Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  
 <request body omitted>
[debug] [2020-05-08T15:27:24.659Z] Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth

For CI servers and headless environments, generate a new token with firebase login:ci
[debug] [2020-05-08T15:27:24.881Z] FirebaseError: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth

For CI servers and headless environments, generate a new token with firebase login:ci
    at Object.<anonymous> (C:\Users\adriang\AppData\Roaming\npm\node_modules\firebase-tools\lib\auth.js:23:32)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Users\adriang\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\login.js:20:14)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at loadCommand (C:\Users\adriang\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\index.js:5:19)
    at module.exports (C:\Users\adriang\AppData\Roaming\npm\node_modules\firebase-tools\lib\commands\index.js:84:20)
[error] 
[error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.```





...