I've summarized what I stumbled upon with firebase login
when trying to upload an app to Firebase App Distribution
on fastlane.
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
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