2018년 1월 2일 화요일

Firebase node-gyp error

최근에 파이어베이스 호스팅과 Functions를 이용해서 사이트를 만들어보고자 했지만
firebase 커맨드라인에 문제가 생겨서 글을 남겨봅니다.


Error Name: ERR! Pre-built binaries not found for grpc@1.6.6 and node@9.3.0 (node-v59 ABI) (falling back to source compile with node-gyp)

위와 같은 에러가 났는데요.
몇가지 글이 나오지 않는데 GitHub에 이슈가 올라온 것으로 확인했습니다.

https://github.com/firebase/functions-samples/issues/267

저는 아래와 같이 해결했습니다.

$ npm install -g firebase-tools

또 project-folder/functions 폴더로 가서 node_modules를 지우고 다시 명령어를 해주었습니다.

$ npm install

그리고 디플로이! 잘 진행해볼 수 있었습니다.

$ functions firebase deploy

=== Deploying to 'webpage-test'...

i  deploying functions, hosting
i  functions: ensuring necessary APIs are enabled...
✔  functions: all necessary APIs are enabled
i  functions: preparing functions directory for uploading...
i  functions: packaged functions (29.15 KB) for uploading
✔  functions: functions folder uploaded successfully
i  hosting: preparing public directory for upload...
⚠  Warning: Public directory does not contain index.html
✔  hosting: 2 files uploaded successfully
i  functions: updating function app...
✔  functions[app]: Successful update operation.
Function URL (app):

✔  Deploy complete!

Project Console: ---
Hosting URL: ---

댓글 없음:

댓글 쓰기

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...