0

I am getting error while deploying error on Firebase. According to this docs: Firebase Docs

I have installed Node and npm latest version.

Then I run "npm install -g firebase-tools" command for firebase. After this, When ever I run "firebase --help" or "firebase init" Then got this error :

enter image description here

mklement0
  • 382,024
  • 64
  • 607
  • 775
Akashsingla19
  • 690
  • 2
  • 8
  • 18
  • Maybe relevant: http://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode – jpw Apr 02 '16 at 18:34
  • @jpw Thanks for your reply. Can you tell me steps to remove this error, I don't know much about node. – Akashsingla19 Apr 03 '16 at 05:56
  • I'm afraid I can't help you as I don't know Node that well either, I just thought that the question I linked would be helpful. – jpw Apr 03 '16 at 10:16

1 Answers1

0

Updating node will resolve this issue. Install the LTS version of node from their website.

OR

Replace the const from const EventEmitter with var

Zobia Kanwal
  • 4,085
  • 4
  • 15
  • 38