For users who generated an empty project with angular cli 1.4.9 (Actual on October 2017) and then started follow the instructions step-by-step, just run the following command:
npm i angular-in-memory-web-api
Just that command, without anything additional.
Hope that saves someone's time