从 Firebase 上的管道部署期间出错
Error during deploy from pipeline on firebase
我尝试使用 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
出现此错误时一切正常,直到最后一个命令
但如果从终端 I 运行
firebase deploy --project test-1c121
一切正常
检查 package.json
文件中的 scripts
部分。你可能在 deploy
中有错字,因为 npm 运行s 与 运行ning firebse 命令有问题,你想 运行 firebase.
我尝试使用 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
出现此错误时一切正常,直到最后一个命令
但如果从终端 I 运行
firebase deploy --project test-1c121
一切正常
检查 package.json
文件中的 scripts
部分。你可能在 deploy
中有错字,因为 npm 运行s 与 运行ning firebse 命令有问题,你想 运行 firebase.