小编Man*_*uga的帖子

部署 firebase 函数的非法选项

我在 GitLab 中部署 firebase 函数时遇到错误。我知道 package.json 和 firebase.json 必须有 Unix EOL,我用 Notepad++ 对其进行了转换,但这并没有解决任何问题。可能是什么问题呢?

i  deploying storage, firestore, functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint
> lint
> tslint -p tsconfig.json
/bin/sh: 0: Illegal option --
Error: functions predeploy error: Command terminated with non-zero exit code 2
Run Code Online (Sandbox Code Playgroud)

包.json

{
  "name": "functions",
  "scripts": {
    "test": "mocha --timeout 15000 -r ts-node/register './test/*/*.ts' --exit",
    "lint": "tslint -p tsconfig.json",
    "build": "tsc",
    "build:watch": "tsc --watch --preserveWatchOutput",
    "serve": "npm run build:watch | firebase emulators:start --only …
Run Code Online (Sandbox Code Playgroud)

firebase gitlab-ci tslint gitlab-ci-runner google-cloud-functions

9
推荐指数
0
解决办法
231
查看次数