Deployment error. Build failed: Build error details not available. Firebase Cloud Functions

丶灬走出姿态 提交于 2021-02-19 02:15:07

问题


I reinstalled multiple times NPM and Node on my pc.

(npm version 7.4.3)

(node version v15.7.0)

I followed the procedure for configuring the Firebase CLI with:

npm install -g firebase-tools

and firebase init and firebase deploy and the configuration seems to work fine.

The problem I'm facing happens when I open the index.js file and I uncomment the stock helloWorld function which looks like this:

exports.helloWorld = functions.https.onRequest((request, response) => {
functions.logger.info("Hello logs!", {structuredData: true});
response.send("Hello from Firebase!");
});

I run firebase deploy and I receive this error

functions[helloWorld(us-central1)]: Deployment error.
Build failed: Build error details not available. Please check the logs at https://console.    {urlStuff}


Functions deploy had errors with the following functions:
helloWorld


 To try redeploying those functions, run:
firebase deploy --only "functions:helloWorld"


 To continue deploying other features (such as database), run:
firebase deploy --except functions

 Error: Functions did not deploy properly.

I honestly don't know what to do now. I tried multiple times to re install node and npm and re doing the Firebase CLI procedure but nothing seems to solve this problem, I still receive this Error when deploying.

The log error I receive is this :

textPayload: "ERROR: error fetching storage source: generic::unknown: retry budget exhausted (3 attempts): fetching gcs source: unpacking source from gcs: source fetch container exited with non-zero status: 1"

回答1:


As suggested by this link provided by @Muthu Thavamani :

GCP Cloud Function - ERROR fetching storage source during build/deploy

Firebase CLI uses NodeJS version 12 while on my device I had version 15 installed.

Just use this guide to downgrade your version of NodeJS and everything works fine.



来源:https://stackoverflow.com/questions/65955328/deployment-error-build-failed-build-error-details-not-available-firebase-clou

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!