Running command: npm --prefix "$RESOURCE_DIR" run build
> build
> npm run lint && tsc
/bin/sh: --: invalid option
Usage: /bin/sh [GNU long option] [option] ...
/bin/sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
Error: functions predeploy error: Command terminated with non-zero exit code 2
error Command failed with exit code 1.
와 같은 에러가 발생하였다.
https://github.com/firebase/firebase-tools/issues/6446 링크를 타고 들어가 확인해보면 npm -g uninstall firebase-tools를 입력한 후 npm -g install firebase-tools@12.0.0 다시 설치하여 deploy해주면 정상적으로 작동하는 것을 확인할 수 있다!