I have an Angular 2 project build using Angular cli rc0 where the tests are running fine in local but failing in Travic CI due to the following constructor in node_modules.
/home/travis/build/evansmwendwa/blinky-angular/node_modules/@angular/cli/models/config/config.js:16
constructor(_configPath, schema, configJson, fallbacks = []) {
Getting SyntaxError: Unexpected token =
in fallbacks = []
.
Any idea how I can solve this since it's inside node_mdoules
This problem was fixed for me by adding a global installation of angular cli as part of the travis build:
before_script:
- npm install -g @angular/cli
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.