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

前端 未结 23 1030
-上瘾入骨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条回答
  •  一生所求
    2020-11-28 01:43

    Well, I faced the same issue as soon as I updated my angular cli version.

    Earlier I was using 1.7.4 and just now I upgraded it to angular cli 6.0.8.

    To update Angular Cli global:

    npm uninstall -g angular-cli
    npm cache clean 
    npm install -g @angular/cli@latest
    

    To update Angular Cli dev:

    npm uninstall --save-dev angular-cli
    npm install --save-dev @angular/cli@latest
    npm install
    

    To fix audit issues after npm install:

    npm audit fix
    

    To fix the issue related to "angular.json":

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

提交回复
热议问题