circle-ci上的配置处理错误[生成错误]

时间:2020-10-17 08:11:42

标签: amazon-s3 yaml config amazon-cloudfront circleci

我在circle-ci“

上遇到配置处理错误的问题

配置处理错误

 !/bin/sh -eo pipefail
 Unable to parse YAML
 while parsing a block collection
  in 'string', line 22, column 13:
                 - node_modules
                 ^
 expected <block end>, but found '?'
  in 'string', line 23, column 13:
                 key: app-{{ checksum \"package.js ... 

 -------
Warning: This configuration was auto-generated to show you the message above.
Don't rerun this job. Rerunning will have no effect.
false

Exited with code exit status 1
CircleCI received exit code 1

这是my repo

1 个答案:

答案 0 :(得分:0)

导致错误的原因是关闭了一行。

修复后

  -save_cache:
      paths:
        - node_modules
      key: app-{{ checksum "package.json" }}

在修复之前

 -save_cache:
   paths:
    - node_modules
     key: app-{{ checksum "package.json" }}