How to fix Cannot find module 'typescript' in Angular 4?

后端 未结 11 669
遥遥无期
遥遥无期 2020-12-09 07:40

I generated Angular 4 app 3 weeks ago using the @angular/cli. After 2 weeks, I tried to run it with the command line \"ng serve\" but I am prompted an error bel

11条回答
  •  盖世英雄少女心
    2020-12-09 08:03

    I had the same problem. If you have installed first nodejs by apt and then you use the tar.gz from nodejs.org, you have to delete the folder located in /usr/lib/node_modules.

提交回复
热议问题