Group-01-Match-Making-System-COSC2408 / Group-01-Match-Making-System-COSC2408-

COSC2408
0 stars 1 forks source link

Java dependency for Windows Subsystem for Linux for Firebase Emulator #5

Open s3668087 opened 3 years ago

s3668087 commented 3 years ago

When running npm test. Might be necessary to install Open JDK 8 on Windows Subsystem for Linux.

> group-01-match-making-system-cosc2408-@1.0.0 test /mnt/c/Users/Aero/Resilio Sync/Group-01-Match-Making-System-COSC2408-
> firebase emulators:start

i  emulators: Starting emulators: auth, functions, firestore, hosting
⚠  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, pubsub
✔  functions: Using node@12 from host.
⚠  functions: Unable to fetch project Admin SDK configuration, Admin SDK behavior in Cloud Functions emulator may be incorrect.
i  firestore: downloading cloud-firestore-emulator-v1.11.14.jar...
Progress: ===========================================================================================================> (100% of 62MB 
i  firestore: Firestore Emulator logging to firestore-debug.log
⚠  firestore: Fatal error occurred:
   Firestore Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/, 
   stopping all running emulators
i  functions: Stopping Functions Emulator
i  firestore: Stopping Firestore Emulator
⚠  firestore: Error stopping Firestore Emulator
i  hub: Stopping emulator hub
npm ERR! Test failed.  See above for more details.
s3668087 commented 3 years ago

Workaround is to install Open JDK 8 JRE on Windows Subsystem for Linux on Ubuntu. sudo apt-get install openjdk-8-jre npm test works fine now.