Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start firebase project for existing instruction #736

Open
AAlex-11 opened this issue Aug 15, 2023 · 0 comments
Open

Unable to start firebase project for existing instruction #736

AAlex-11 opened this issue Aug 15, 2023 · 0 comments

Comments

@AAlex-11
Copy link

AAlex-11 commented Aug 15, 2023

  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

[email protected] start
npm run pre-build && firebase --project demo-friendly-eats emulators:exec --import ./imported-firebase-data --ui 'ng serve'
[email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant