Cannot find module '@angular-devkit/core'

前端 未结 9 2144
感情败类
感情败类 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:48

    I only installed my angular/cli using:
    npm install -g @angular/cli@1.5.2
    And I started getting this error.

    Solution:
    If your version is global and
    If you don't mind the version of your angular/cli then type:
    npm update -g @angular/cli

    0 讨论(0)
  • 2020-12-23 09:50

    Just run:

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

    In the project folder, to fix it.

    0 讨论(0)
  • 2020-12-23 09:50

    Step 1: delete package-lock.json Step 2: npm update -g @angular/cli Step 3: update @angular/cli new version in package.json Step 4: npm install

    It worked for me.

    0 讨论(0)
提交回复
热议问题