Error: Local workspace file ('angular.json') could not be found

前端 未结 23 1058
-上瘾入骨i
-上瘾入骨i 2020-11-28 01:10

I have travis-ci integrated with my GitHub account (https://github.com/pradeep0601/Angular5-Router-App).

When I updated @angular/cli versio

23条回答
  •  Happy的楠姐
    2020-11-28 01:48

    I just had the same problem.

    It's related to release v6.0.0-rc.2, https://github.com/angular/angular-cli/releases:

    New configuration format. The new file can be found at angular.json (but .angular.json is also accepted). Running ng update on a CLI 1.7 project will move you to the new configuration.

    I needed to execute:

    ng update @angular/cli --migrate-only --from=1.7.4
    

    This removed .angular-cli.json and created angular.json.

    If this leads to your project using 1.7.4, install v6 locally:

    npm install --save-dev @angular/cli@v6.0.0-rc.4
    

    And try once again to update your project with:

    ng update @angular/cli --migrate-only --from=1.7.4
    

提交回复
热议问题