Cannot find module '@angular/compiler'

前端 未结 7 984
南方客
南方客 2020-12-13 13:42

I run the command npm install -g @angular/cli and after i tried to run my app it says, Cannot find module \'@angular/compiler\' in the terminal. How can i install the compil

7条回答
  •  清歌不尽
    2020-12-13 14:04

    Just to add to this. You will get this error too, when you are running ng serve not from within your project folder. So always make sure your bash runs from your project folder.

提交回复
热议问题