안녕하세요. 린다입니다.
Firebase에서 애플로그인을 구현하고 탈퇴까지 구현하는게..
상당히 까다롭더라구요. 단순이 Auth에서 지우는것뿐만 아니라..
revoke Token이 쉽지 않았어요.ㅠ
(카카오는.. 간단했는데...... .. .. ㅠㅠ)
그래서 구현하면서 참고한 레퍼런스를 모아두었고..
따라하면서 저한테 발생했던 추가적인 에러들도 정리해 놓았으니,
참고가 되셨으면 좋겠습니다!
github. (해당 깃허브 보시면 바로 이해 가실거에요. 너무 감사합니다 .. )
https://github.com/jooyoungho/apple-token-revoke-in-firebase
https://jooyoungho.github.io/apple-token-revoke-in-firebase/make-functions/
블로그. (깃허브가 다 영어라서 힘드신 분들은 해당 블로그 참고)
https://wondev.tistory.com/177
추가로 발생했던 에러와 해결
1. "global", previously loaded as "user"
/.cache/firebase/runtime/npmrc" as "global", previously loaded as "user" at Config.#loadObject
( https://github.com/nodejs/help/issues/4193 ) 을 참고하여 npm을 삭제 후 재설치
하여도 동일한 문제가 발생하였고.. 그래서 그냥 cmd 창 껐다 켜니까 해결 완료.
동일하다면, 재설치 후 한번 종료하고 다시 실행시켜주세요!
2. sh: eslint: command not found
Running command: npm --prefix "$RESOURCE_DIR" run lint
> lint
> eslint
sh: eslint: command not found
Error: functions predeploy error: Command terminated with non-zero exit code 127
에러발생
npm install -g eslint -> eslint
해결 완료
맨 처음에는 eslint . 에서 에러가 난다고 해서
폴더 내의 package.json을 열어서 eslint . -> eslint 으로 수정했고,
그 뒤에도 eslint를 못 찾는다고 .. npm으로 eslint 설치하여 해결했습니다.
(npm을.. 이거 하면서 처음 접해봐서 ㅠ 저는 한번에 다 설치되는 줄 알았어요..)
3. Error: Error parsing triggers: Cannot find module 'firebase-functions'
Error: Error parsing triggers: Cannot find module 'firebase-functions'
Require stack:
- /Users/parkseoyeon/Desktop/Mogong/SYM/functions/index.js
- /opt/homebrew/lib/node_modules/firebase-tools/lib/deploy/functions/runtimes/node/triggerParser.js
Try running "npm install" in your functions directory before deploying.
해당 에러 발생
npm install firebase-functions
해결 완료
분명히 맨처음 프로젝트 폴더에 firebase init을 했는데..도 이런 에러가 나서
사실 왜 나는지 잘 모르겠지만.. npm으로 다시 한번 해당(functions) 폴더에 설치해주니까 해결완료
'Swift' 카테고리의 다른 글
Tuist에서 Assets, Font 설정하기 (0) | 2024.03.27 |
---|---|
Swift, localization 설정하는 방법 (feat, Tuist) (0) | 2024.02.28 |
Swift, Local Notification에 이미지 넣는 방법 (0) | 2024.02.23 |
Firebase FCM 사용중 발생하는 '-[FIRInstallationsItem registeredInstallationWithJ 에러 해결 (2) | 2024.02.22 |
Swift, FCM 사용 중 발생하는 FirebaseAppDelegateProxyEnabled 관련 에러 해결하기 (0) | 2024.02.22 |