2021-12-10

Tech Programing

程式人小天地

ELIFECYCLE error – firebase functions deploy

1 min read


I’m getting this error when trying to deploy firebase functions.

I know there are plenty of posts about this issue but none of the solutions fixed my issue

any idea how to fix it?

i  deploying firestore, functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> [email protected] lint /Users/Nat-Serrano/Desktop/Reny/functions
> eslint .


/Users/Nat-Serrano/Desktop/Reny/functions/index.js
  18:65  error  Parsing error: Unexpected token =>

✖ 1 problem (1 error, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] lint: `eslint .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Nat-Serrano/.npm/_logs/2021-12-10T06_23_26_783Z-debug.log

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

this is my eslint

{
  "functions": {
    "predeploy": ["npm --prefix "$RESOURCE_DIR" run lint"],
    "source": "functions"
  },
  "firestore": {
    "rules": "firestore.rules",
    "indexes": "firestore.indexes.json"
  }
}



Source link

資料來源:Stackoverflow

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *