GitHub Action 构建 firebase 应用程序失败 w9jds/firebase-action

Lui*_*uis 5 github node.js npm firebase github-actions

我可以在我的本地命令行中使用我的 friebase 应用程序(https://github.com/Luuuuuis/profile-pagefirebase deploy,但是当我推送它时,它一直失败 -> 没有代码错误。

这是我的 GitHub 操作:https : //github.com/Luuuuuis/profile-page/blob/master/.github/workflows/main.yml 并且在尝试构建时失败。https://github.com/Luuuuuis/profile-page/runs/792416930?check_suite_focus=true

这是我得到的错误:

Error: EACCES: permission denied, open '/usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine/lib/compatibility/index.js' at Object.openSync (fs.js:443:3) at Object.writeFileSync (fs.js:1194:35) at /usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine/lib/compatibility/detect.js:35:15 at Object. (/usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine/lib/compatibility/detect.js:45:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/firebase-tools/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! storage-engine@3.0.7 postinstall: node ./compatibility/detect.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the storage-engine@3.0.7 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-06-21T10_52_59_937Z-debug.log The command '/bin/sh -c npm install -g firebase-tools' returned a non-zero code: 1 ##[error]Docker build failed with exit code 1

昨天已经可以使用了,但是今天我尝试了很多次都没有用。我的行为有问题吗?

phy*_*yyl -1

EACCES: permission denied
Run Code Online (Sandbox Code Playgroud)

你应该尝试执行它sudo