firebase/quickstart-js

Unable to start firebase project for existing instruction

AAlex-11 opened this issue · 0 comments

  1. I have prepared database for your instruction https://github.com/firebase/quickstart-js/blob/master/firestore/README.md
    Firebase-08152023_223515

  2. Install firebase-tools and Node library to project \firestore and firestore\functions

  3. adding firebase configuration to firestore\src\environments\environment.prod.ts and firestore\src\environments\environment.default.ts

  4. than manually compiled two folders \firestore and firestore\functions (because nobody in Windows environment knows what mean this command "npm install && (cd functions && npm install)"

At line:1 char:13

  • npm install && (cd functions && npm install)
  •         ~~
    

The token '&&' is not a valid statement separator in this version.

  1. than npm start print me something usefulness information

friendly-eats-quickstart@0.0.0 start
npm run pre-build && firebase --project demo-friendly-eats emulators:exec --import ./imported-firebase-data --ui 'ng serve'
friendly-eats-quickstart@0.0.0 pre-build
(cd functions && npm run build)
build
tsc

  1. Instruction step 7 is not working

firebase --use add
error: unknown option '--use'

  1. Your instruction step 8 also "npm run production" also don't working

npm run production
npm ERR! Missing script: "production"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in: C:\Users\Razen\AppData\Local\npm-cache_logs\2023-08-15T19_30_30_985Z-debug-0.log

  1. Than I try to start project and receive this error.

ng serve --open

Firebase-08152023_223404

What does mean this trouble?
And can you create useful instruction to start this project?
Thank you.