我正在尝试通过 Github 在 firebase 上部署我的 react js 项目。我正在做持续集成和部署。当我在 firebase 上部署任何分支时,我收到此错误:
/usr/local/bin/npx firebase-tools deploy --only hosting --project <Project Name> --json
***
"status": "error",
"error": "There was an error loading firebase.json:\n\nENOENT: no such file or directory, open '/home/runner/.npm/_npx/1667/lib/node_modules/firebase-tools/schema/firebase-config.json'"
***
***
"status": "error",
"error": "There was an error loading firebase.json:\n\nENOENT: no such file or directory, open '/home/runner/.npm/_npx/1667/lib/node_modules/firebase-tools/schema/firebase-config.json'"
***
The process '/usr/local/bin/npx' failed with exit code 1
Retrying deploy with the --debug flag for better error output
/usr/local/bin/npx firebase-tools deploy --only hosting --project <Project Name> --debug
Error: There was an error loading firebase.json:
ENOENT: no such file or directory, open '/home/runner/.npm/_npx/1760/lib/node_modules/firebase-tools/schema/firebase-config.json'
Error: There was an error loading firebase.json:
ENOENT: no such file or directory, open '/home/runner/.npm/_npx/1760/lib/node_modules/firebase-tools/schema/firebase-config.json'
The process '/usr/local/bin/npx' failed with exit code 1
Error: The process '/usr/local/bin/npx' failed with exit code 1
***
conclusion: 'failure',
output: ***
title: 'Deploy preview failed',
summary: "Error: The process '/usr/local/bin/npx' failed with exit code 1"
***
***