I’m encountering an issue with Firebase CLI on my MacBook. I have several React + Firebase projects and use Firebase CLI commands regularly. However, since yesterday I’ve been unable to run any Firebase commands in my terminal.
Error Message: When I try to run Firebase commands (e.g., firebase), I receive an error saying “permission denied.”
When I try to run Firebase commands with sudo, I receive an error saying “command not found”
I’ve tried reinstalling Firebase CLI using npm (npm install -g firebase-tools), updating it to the latest version, and checking my system’s PATH variable to ensure the Firebase CLI path is included.
firebase was working on one of my open projects, but after restarting my laptop, that one also stopped working!
Many people, including some on stackoverflow, suggested changing the rules on the Firebase console, but it seems this is a problem on my system since I am in the same situation with all my projects right now.
All my projects are in React, and I’m coding with vs code on a Macbook.
I’d appreciate any insights or suggestions on how to resolve this issue and get Firebase CLI commands working again. Thank you!