For firebase hosting, I installed gooble firebase tools with executing 'npm install -g firebase-tools' command in my firebase project. Then I wanted to execute 'firebase login' command to initialize project, but I couldn't execute because I already logged in with another Google email before. So I want to cancel 'firebase login' and login again with another account but I don't know how to do. I thought about installing Google Firebase tools again after deleting and reinstalling npm. But I think this will have a bad effect on the package(-lock).json that others have added and make things big, so I'm going to look for another way.
So I want to cancel 'firebase login' and login again with another account
If I correctly understand your question you should use the CLI firebase logout
command followed by the firebase login
one.