Due to new Firebase Cloud Functions (version > 1.0). I only need to call
admin.initializeApp();
Without any parameters.
However when I did like that then run firebase deploy --only functions , this error occurred :
Failed to read credentials from file G:\projects\ANOTHER_PROJECT\ANOTHER_PROJECT.json: Error: ENOENT: no such file or directory, open 'G:\projects\ANOTHER_PROJECT\ANOTHER_PROJECT.json'