Angular CircleCI / usr / bin / xvfb-run:183:/ usr / bin / xvfb-run:ng:找不到

时间:2019-01-20 16:51:25

标签: angular circleci

我正在尝试将CricleCi与Angular集成,但是没有运气。

是这种情况:

#!/bin/bash -eo pipefail
xvfb-run -a ng test --browsers=ChromeHeadless --code-coverage --watch=false
/usr/bin/xvfb-run: 183: /usr/bin/xvfb-run: ng: not found
Exited with code 127

config.yml

   version: 2
    jobs:
      build:
        working_directory: ~/my-project
        docker:
        - image: circleci/node:8-browsers
        steps:
        - checkout
        - restore_cache:
            key: AngularCircleCI-{{ .Branch }}-{{ checksum "package.json" }}
        - run: npm install
        - save_cache:
            key: AngularCircleCI-{{ .Branch }}-{{ checksum "package.json" }}
            paths:
            - "node_modules"
        - run: xvfb-run -a ng test --browsers=ChromeHeadless --code-coverage --watch=false
        - run: xvfb-run -a npm run e2e -- --no-progress --config=protractor-ci.conf.js

任何建议都会有所帮助...

配置:

Angular CLI: 7.2.2
Node: 10.10.0
OS: linux x64
rxjs                         6.3.3
typescript                   3.2.2

0 个答案:

没有答案