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

前端 未结 23 1096
-上瘾入骨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:59

    I had the same problem, and what I did that works for me was:

    1. Inside package.json file, update the Angular CLI version to my desired one:

      "devDependencies": { ...
        "@angular/cli": "^6.0.8",
        ...
      }
      
    2. Delete the node_modules folder, in order to clean the project before update the dependencies with:

      npm install
      
      ng update @angular/cli
      
    3. Try to build again my project (the last and successful attempt)

      ng build --prod
      

提交回复
热议问题