Cannot find module '@angular-devkit/core'

前端 未结 9 2308
感情败类
感情败类 2020-12-23 09:24

I have created a angular project with Angular CLI: 1.6.3 Node: 9.4.0 OS: linux x64 version. But when want to run my angular app with command ng serve then fetch this error

9条回答
  •  余生分开走
    2020-12-23 09:33

    Step1: Edit your package.json changing the line

    @angular/cli": "1.6.4"
    

    to

    @angular/cli": "^1.6.4"
    

    Step2:

    npm update -g @angular/cli 
    

    Step3:

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

    I was facing the exact same problem. These three did the tasks for me. You may like to see https://github.com/angular/angular-cli/issues/9307

提交回复
热议问题