Angular 6 Migration -.angular-cli.json to angular.json

前端 未结 8 1800
北荒
北荒 2020-12-04 16:37

I\'ve upgraded my project to Angular 6, and everything went fine except the conversion of .angular-cli.json file. From the guide I followed, it was said that th

8条回答
  •  甜味超标
    2020-12-04 17:12

    Try running "ng update @angular/cli" twice it will update angular-cli.json to angular.json

    UPDATE:

    if getting errors like this:

    ERROR: The specified command update is invalid, for available options see ng-help.

    then you need to run 2 commands as follows

    1. npm install --save-dev @angular/cli@latest.
    2. ng update @angular/cli

    this will automatically create angular.json, delete .angular-cli.json and update karma.conf.js, src/tsconfig.spec.json, package.json, and tslint.json

提交回复
热议问题