20 error code ELIFECYCLE 21 error errno 1 22 error functions@ lint: `eslint .` 22 error Exit status 1 23 error Failed at the functions@ lint script. 1

20 error code ELIFECYCLE 21 error errno 1 22 error functions@ lint: `eslint .` 22 error Exit status 1 23 error Failed at the functions@ lint script.

# the linter package isn't installed,
# if you need to deploy without run linter you can remove
# the those lines from firbase.json file:

"predeploy": [
      "npm --prefix \"$RESOURCE_DIR\" run lint"
    ],

# THANK YOU @Mohammad Desouky

Here is what the above code is Doing:
1. We’re importing the Firebase Admin SDK.
2. We’re initializing the Admin SDK with a service account, which we’re reading from a JSON file.
3. We’re creating a reference to the database.
4. We’re creating a reference to the messages node.
5. We’re creating a new message.
6. We’re adding the new message to the messages node.
7. We’re printing the message to the console.

Similar Posts