首页 文章

从firebase上的管道部署期间出错

提问于
浏览
0

我尝试使用gitlab管道在firebase上部署我的角度应用程序 .

我按照这个guide编写了一个更简化的gitlab-ci文件,用于启动 .

image: node:latest

cache:
  paths:
    - node-modules/

stages:
  - deploy

deploy:
  stage: deploy
  environment:
    name: development
  script:
    - npm install -g firebase-tools
    - npm install
    - npm run builddev
    - npm run deploy
  only:
    - master

当我遇到此错误时,一切正常,直到最后一个命令

但如果从终端我跑

firebase deploy --project test-1c121

一切正常

1 回答

  • 1

    检查 scripts 部分中的 package.json 文件 . 您可能在 deploy 中有拼写错误,因为运行 firebse 命令并且您想要运行 firebase ,npm会遇到问题 .

相关问题