기타
[firebase]에러, 노드버전
승딱
2022. 12. 25. 18:56
반응형
/home/ubuntu/SBT-ticket-server/node_modules/firebase-admin/lib/app/firebase-namespace.js:84
0|index | this.INTERNAL = new FirebaseNamespaceInternals(appStore ?? new lifecycle_1.AppStore());
0|index | ^
0|index |
0|index | SyntaxError: Unexpected token '?'
nodejs 에서 firestore 사용할때 마주한 에러 로컬에서는 문제 없었는데 우분투에서 에러가 남
검색결과 node버젼이 낮으면 나올수 있는 에러였음
나는 로컬은 18 이였고 우분투는 12 버젼 이였음 그래서 배포전에는 몰랐음
우분투에서 nvm 설치 > nvm install 버젼 > nvm use 18 로 노드 버젼 변경이후에
노드모듈스 제거이후 재설치 하니까 오류 해결됨
이래서 노드버젼 맞추라고 하는구나 하고 처음느껴서 적어둠..