Angular2 Tutorial (Tour of Heroes): Cannot find module 'angular2-in-memory-web-api'

前端 未结 29 2250
青春惊慌失措
青春惊慌失措 2020-11-29 06:25

I have followed the Tutorial. After changing app/maint.ts in the Http chapter I get the error when starting the app via command line:

ap

29条回答
  •  既然无缘
    2020-11-29 06:49

    I encountered a similar problem. I just downloaded the entire example near the end of part 7 (last part) of the tutorial and ran it. It worked.

    Of course, you need to install and compile everything first.

    > npm install
    > npm start
    

    I also changed 'app-root' to 'my-app' in app.component.ts.

提交回复
热议问题