[SWIFT] Summary of problems that I could not log in to firebase

I've summarized what I stumbled upon with firebase login when trying to upload an app to Firebase App Distribution on fastlane.

Problem ① Error: @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0

This is an error that occurs because the node version is not 8.13.0 or 10.10.0 or higher. You need to switch the version of node.

Check the version of node included

$ nodebrew ls
v9.11.2
v12.4.0

Check the version of node you are using

$ node -v
v9.11.2

Switch versions

$ nodebrew use v12.4.0
use v12.4.0
$ node -v
v12.4.0

This completes the switch!

After that, you need to re-install firebase based on the switched node.

$ npm uninstall firebase-cli
$ npm uninstall firebase-tools
$ npm install -g firebase-tools --force

Problem (2) -bash: firebase: command not found

This is an error that occurs because the command is not working because it is not in your PATH. You will need to check and set your npm PATH.

Check PATH

$ npm bin -g
/Users/user/.nodebrew/node/v12.4.0/bin
(not in PATH env variable)

If not in PATH env variable is displayed, npm's PATH is not in your path.

PATH

$ export PATH=$PATH:`npm bin -g`
$ npm bin -g
/Users/mu/.nodebrew/node/v12.4.0/bin

That's it!

Recommended Posts

Summary of problems that I could not log in to firebase
Summary of how to select elements in Selenium
Summary of what I learned in Spring Batch
I want to embed any TraceId in the log
I tried to implement Firebase push notification in Java
Summary of how to implement default arguments in Java
Installing Java is not easy! Summary of precautions to finish perfectly in one time
The case that @Autowired could not be used in JUnit5
I want to change the log output settings of UtilLoggingJdbcLogger
I tried to verify this and that of Spring @ Transactional
I tried to make a client of RESAS-API in Java
Ubuntu unable to log in
About the solution to the problem that the log of logback is not output when the web application is stopped
I can't log in to MySQL from Django when using docker-compose
I tried to summarize the words that I often see in docker-compose.yml
I tried to implement Ajax processing of like function in Rails
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0
Summary of ORM "uroboroSQL" that can be used in enterprise Java
The story of Collectors.groupingBy that I want to keep for posterity
Summary of Docker commands that I often use but can't remember
I tried to make Numeron which is not good in Ruby
I want to change the value of Attribute in Selenium of Ruby
Want to throw an IOException out of Stream? in that case
The case that "apt-get update" defined in "Dockerfile" could not be done at the time of "docker-compose build"
Log output to file in Java
What I did when I was addicted to the error "Could not find XXX in any of the sources" when I added a Gem and built it
I tried to make a parent class of a value object in Ruby
Library summary that seems to be often used in recent Android development (2019/11)
I tried to build a Firebase application development environment with Docker in 2020
[Ruby] I want to display posted items in order of newest date
My memorandum that I want to make ValidationMessages.properties UTF8 in Spring Boot
How to constrain the action of the transition destination when not logged in
I tried to make full use of the CPU core in Ruby
[Ruby] I tried to summarize the methods that frequently appear in paiza
The story that the Servlet could not be loaded in the Java Web application
[Rails] The cause of not being able to post was in form_with
[Ruby] I tried to summarize the methods that frequently appear in paiza ②
[Ruby] Summary of exception classes that appear in error statements [Meaning of NameError]