1

I tried to install firebase:

npm install -g firebase-tools

but then I tried:

firebase login

and failed with:

The system cannot find the path specified.

But I have global npm folder in my PATH. I have yarn & flow and it works fine

My PATH looks like this:

and my npm folder (you can see firebase, yarn, flow there):

  • reboot doesn't work
  • reopening my cmd doesn't work too

Please help.

2
  • tried to reinstall npm - now which firebase works and I see the path, but after firebase I see The system cannot find the path specified. Apr 24, 2017 at 17:01
  • reinstall npm & reinstall firebase Apr 24, 2017 at 17:02

1 Answer 1

4

I know It's a bit late but here is my fix:

  1. After running npm install -g firebase-tools open your File explorer at this location: C:\Users\YOUR_USERNAME\AppData\Roaming\npm
  2. Shift + Right Click to open PowerShell at this location and then enter ./firebase. If this works, great!
  3. Open environment variables and add C:\Users\YOUR_USERNAME\AppData\Roaming\npm to your path for current user AND System variables
  4. Restart your machine
  5. Use firebase #Yay

Hope it helps!

1
  • Note that PowerShell may give the following error at #2 when trying ./firebase: "cannot be loaded because running scripts is disabled on this system" but CMD won't. Regardless, adding %USERPROFILE%\AppData\Roaming\npm in the system PATH fixes this Nov 24, 2020 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.