【问题标题】:Error during deploy from pipeline on firebase从 Firebase 上的管道部署期间出错
【发布时间】:2018-12-09 02:23:53
【问题描述】:

我尝试使用 gitlab 管道在 Firebase 上部署我的 Angular 应用程序。

我遵循了这个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 部署 --project test-1c121

一切正常

【问题讨论】:

    标签: firebase gitlab gitlab-ci continuous-deployment


    【解决方案1】:

    scripts 部分检查您的package.json 文件。您可能在 deploy 中有错字,因为 npm 在运行 firebse 命令时遇到问题,而您想运行 firebase

    【讨论】:

    • 很抱歉发布了这个愚蠢的问题:(。我发誓我没有看到错字。没有完美的工作
    • 这个网站的存在是为了寻求帮助和提供帮助,别担心!每个人都会犯愚蠢的错误!
    猜你喜欢
    • 2019-05-12
    • 2021-04-26
    • 1970-01-01
    • 1970-01-01
    • 2021-05-02
    • 2017-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多