我正在尝试使用cmd提示部署Firebase angular js Web应用程序功能:
firebase deploy --only functions
Run Code Online (Sandbox Code Playgroud)
但是我不断得到错误代码:
C:\Users\deji\Desktop\TNF>firebase deploy --only functions
=== Deploying to 'fantasyapp-a5717'...
i deploying functions
Running command: npm --prefix %RESOURCE_DIR% run lint
> functions@ lint C:\Users\deji\Desktop\TNF\functions
> eslint .
C:\Users\deji\Desktop\TNF\functions\index.js
17:5 error Expected catch() or return promise/catch-or-return
17:54 error Each then() should return a value or throw promise/always-return
17:54 warning Unexpected function expression prefer-arrow-callback
19:9 error Expected catch() or return promise/catch-or-return
19:9 warning Avoid nesting promises promise/no-nesting
21:9 warning Unexpected function expression prefer-arrow-callback
21:9 error …Run Code Online (Sandbox Code Playgroud)