Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot deploy angular app on firebase

This is my first time when I try to deploy a web application on a remote server. I chose Firebase to deploy my angularJs app. These are the steps provided by them:

  1. npm install -g firebase-tools <---- successfully installed
  2. firebase init <- Here it says that this operation requires login. I proceed to the next step.
  3. firebase login <---- I get the following:

    Error: Cannot run login in non-interactive mode. See login:ci to generate a token for use in non-interactive environments.

I don't know what "see login:ci" means, but I tried:

  1. firebase login:ci <---- I get the following: "Error: Cannot run login:ci in non-interactive mode."

I also wrote a question in their support groups, but no answer yet.

Do you have any idea what should I do?

I'm also opened to try to deploy on other servers. (as longs as they are free)

like image 680
Bogdan Adrian Avatar asked Feb 12 '16 17:02

Bogdan Adrian


People also ask

Can we deploy Angular app in firebase?

Deploy an Angular application on Firebase Give some account name. 10) Chose "Analytics location". Select "I accept the Google Analytics terms" and click on "Create project". 11) Go to Angular CLI and run this command.

Can we deploy app on firebase?

Firebase hosting is a product to serve so-called static application, which consist only of files that the client interprets. Firebase's servers will not interpret any code that you upload. So Firebase hosting is not suited to host your Ruby-on-Rails application.


1 Answers

I received the same error when I installed Firebase and tried to login for the first time.

To fix the error of 'Cannot run login in non-interactive mode', I used the interactive mode instead:

firebase login --interactive

I then granted permission in the browser to successfully login on the CLI.

Note: My platform was Windows 10 and Git Bash, but I'm sure it will work for other platforms too.

like image 174
Anonsage Avatar answered Oct 20 '22 12:10

Anonsage