"SyntaxError: Unexpected end of JSON input" appears on startup of firebase-tools-instant-win.exe

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 9.12.0

Platform: OS Name - Microsoft Windows 10 Pro Version - 10.0.19042 Build 19042

[REQUIRED] Test case

Download firebase-tools-instant-win.exe from https://firebase.tools/bin/win/instant/latest The run the .exe

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

Normal startup

[REQUIRED] Actual behavior

########################################################################################################################

     Welcome to...
   ######## #### ########  ######## ########     ###     ######  ########  ##
   ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##        ##
   ######    ##  ########  ######   ########  #########  ######  ######    ##
   ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
   ##       #### ##     ## ######## ########  ##     ##  ######  ########  ##


########################################################################################################################

~ Let's make sure your Firebase CLI is ready...
undefined:1



SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at ChildProcess.<anonymous> (C:\snapshot\firepit\welcome.js:115:27)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:443:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:674:12)

> firebase --version
9.12.0

>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lokenjoncommented, Jun 2, 2022

How many hundred of thousands of developers will download TO THE D DRIVE (not C) and run firebase-tools-instant-win.exe only for the installation to fail without a meaning full error message. At least put in a warning statement that the exe file should be placed on the C drive before running. Took me hours of hair-pulling to register a flutter project.

0reactions
mediocre9commented, Nov 22, 2022

Issue persists in 11.16.0 consistently when exe placed outside C:/ drive.

#####################################################################################################################################
     Welcome to...
   ######## #### ########  ######## ########     ###     ######  ########  ##
   ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##        ##
   ######    ##  ########  ######   ########  #########  ######  ######    ##
   ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
   ##       #### ##     ## ######## ########  ##     ##  ######  ########  ##


#####################################################################################################################################
~ Let's make sure your Firebase CLI is ready...
undefined:1


SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at ChildProcess.<anonymous> (C:\snapshot\firepit\welcome.js:115:27)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Socket.<anonymous> (node:internal/child_process:451:11)
    at Socket.emit (node:events:527:28)
    at Pipe.<anonymous> (node:net:709:12)

> firebase --version
11.16.0

renaming firebase-tools-instant-win.exe file to firebase-win.exe worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to solve Firebase CLI error on start up - Stack Overflow
i moved the executable i downloaded ( "firebase-tools-instant-win.exe" ) to folder: c:\firebase\bin and it works without any error,.
Read more >
Uncaught SyntaxError: Unexpected end of JSON input
A common error encountered by JavaScript programmers is the Uncaught SyntaxError: Unexpected end of JSON input. This is usually observed when the coder...
Read more >
What is the "version" field in the CLI configuration file ... - JFrog
JFROG CLI: All About the CLI Configuration File's Version Field and Why It Can Trigger an unexpected end of JSON input Error. Yonatan...
Read more >
Unexpected end of JSON input after migrating/upgrading
I would start by switching on Debugging (if you haven't) and checking your web server's error log. This might be the result of...
Read more >
npm taks, npm install fails with 36780 verbose stack SyntaxError
... stack SyntaxError: Unexpected end of JSON input while parsing near ... Do you mean that if you create a new pipeline with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found