플러터에서 카카오 로그인 구현 후 파이어베이스 서버에 배포하는 과정에서 오류가 발생합니다

안녕하세요. 정말 물어볼 곳이 여기밖에 없는 것 같아 물어봅니다…
제가 지금 https://www.youtube.com/watch?v=Akt91Cl_z00 영상을 보면서 플러터와 카카오 로그인 구현 후 파이어베이스 연동하는 과정을 하고있습니다. 연동까진 했는데 서버에 배포가 안되는 상황입니다.
node.js 로 작성하여 Firebase functions에 올려서 서버를 활용하려고 합니다.

PS C:\Users\32182889\development\project\flutter_project\functions> firebase deploy

=== Deploying to 'hooha-app'...

i  deploying database, storage, firestore, functions, hosting, remoteconfig, extensions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> lint    
> eslint .


C:\Users\32182889\development\project\flutter_project\functions\index.js
   2:7   error  'functions' is assigned a value but never used       no-unused-vars    
   5:7   error  'auth' is assigned a value but never used            no-unused-vars    
   6:1   error  This line has a length of 84. Maximum allowed is 80  max-len
   6:1   error  Unexpected var, use let or const instead             no-var
   9:85  error  Missing trailing comma                               comma-dangle      
  12:29  error  'onRequest' is not defined                           no-undef
  12:69  error  Trailing spaces not allowed                          no-trailing-spaces
  13:1   error  Expected indentation of 2 spaces but found 4         indent
  14:1   error  Expected indentation of 2 spaces but found 4         indent
  14:17  error  Strings must use doublequote                         quotes
  15:1   error  Expected indentation of 2 spaces but found 4         indent
  15:27  error  Trailing spaces not allowed                          no-trailing-spaces
  16:1   error  Expected indentation of 4 spaces but found 8         indent
  16:15  error  Missing space before value for key 'email'           key-spacing
  17:1   error  Expected indentation of 4 spaces but found 8         indent
  17:18  error  Missing space before value for key 'photoURL'        key-spacing
  18:1   error  Expected indentation of 4 spaces but found 8         indent
  18:38  error  Missing trailing comma                               comma-dangle
  19:1   error  Expected indentation of 2 spaces but found 4         indent
  21:1   error  Expected indentation of 2 spaces but found 4         indent
  21:5   error  Expected space(s) after "try"                        keyword-spacing
  22:1   error  Expected indentation of 4 spaces but found 8         indent
  22:42  error  A space is required after ','                        comma-spacing
  23:1   error  Expected indentation of 2 spaces but found 4         indent
  23:7   error  Expected space(s) after "catch"                      keyword-spacing
  23:15  error  Missing space before opening brace                   space-before-blocks
  24:1   error  Expected indentation of 4 spaces but found 8         indent
  25:1   error  Expected indentation of 4 spaces but found 8         indent
  26:1   error  Expected indentation of 2 spaces but found 4         indent
  29:1   error  Expected indentation of 2 spaces but found 4         indent
  31:1   error  Expected indentation of 2 spaces but found 4         indent
  31:19  error  'token' is not defined                               no-undef
  31:26  error  Block must not be padded by blank lines              padded-blocks

✖ 33 problems (33 errors, 0 warnings)
  28 errors and 0 warnings potentially fixable with the `--fix` option.

node:events:489
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm --prefix "%RESOURCE_DIR%" run lint ENOENT
    at notFoundError (C:\Users\32182889\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
    at verifyENOENT (C:\Users\32182889\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16)
    at cp.emit (C:\Users\32182889\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25) 
    at ChildProcess._handle.onexit (node:internal/child_process:293:12)
Emitted 'error' event on ChildProcess instance at:
    at cp.emit (C:\Users\32182889\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:30:37) 
    at ChildProcess._handle.onexit (node:internal/child_process:293:12) {
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn npm --prefix "%RESOURCE_DIR%" run lint',
  path: 'npm --prefix "%RESOURCE_DIR%" run lint',
  spawnargs: []
}

Node.js v20.2.0

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

현재 이렇게 뜨는 상황인데 너무 막막해서 질문 올려봅니다ㅜㅜ

안녕하세요.
eslint 에서 발생한 오류입니다.

error 로 표시된 내용을 보시면, 사용하지 않는 변수가 있거나 코딩컨벤션을 지키지 못헤(ex, 2칸 공백인데 4칸띄움) 발생한 오류도 보입니다.

내용을 확인하여, 잘못된 코드를 수정 하시면 좋을것 같습니다.

1개의 좋아요