Giter VIP home page Giter VIP logo

Comments (6)

AmitJoki avatar AmitJoki commented on May 25, 2024

You need to upload the cloud functions usingfirebase deploy --only functions

from enigma.

UnluckyY1 avatar UnluckyY1 commented on May 25, 2024

Thank you for your response is there any guide for that ? like i said am nooby with firebase

from enigma.

UnluckyY1 avatar UnluckyY1 commented on May 25, 2024

after some research i found out how to do it but i get this error

firebase deploy --only functions

Error: Authorization failed. This account is missing the following required permissions on project amitjoki-enigma:

cloudfunctions.functions.create
cloudfunctions.functions.delete
cloudfunctions.functions.get
cloudfunctions.functions.list
cloudfunctions.functions.update
cloudfunctions.operations.get
firebase.projects.get

from enigma.

UnluckyY1 avatar UnluckyY1 commented on May 25, 2024

fixed the last error but i get a new one now
even when i try npm run build inside the function folder i got error i hope that u can awnser as soon as possible my school project depends on it next week thank you
functions@ lint C:\SRC\Chat-master\functions

eslint .

'eslint' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functions@ lint: eslint .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\siyou\AppData\Roaming\npm-cache_logs\2020-02-18T18_48_11_704Z-debug.log
events.js:183
throw er; // Unhandled 'error' event
^

Error: spawn npm --prefix "%RESOURCE_DIR%" run lint ENOENT
at notFoundError (C:\Users\siyou \AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\siyou\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (C:\Users\mobile\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

Error: functions predeploy error: Command terminated with non-zero exit code1

C:\SRC\Chat-master>cd functions

C:\SRC\Chat-master\functions>npm run build
npm ERR! missing script: build

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\siyou\AppData\Roaming\npm-cache_logs\2020-02-18T18_52_57_004Z-debug.log

from enigma.

AmitJoki avatar AmitJoki commented on May 25, 2024

I am guessing it has to do with how eslint is installed or configured in your system?

Also, you should create your own firebase project and have its JSON put in here.

from enigma.

UnluckyY1 avatar UnluckyY1 commented on May 25, 2024

Thank you for ur quick response i will do more research tomorrow and configure eslint and update you with the news

from enigma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.