Installing firebase & angularfire2 unable to install

Hello guys,
I am new to Angular and I was trying to follow through this section: 4- Creating a New Project | Code with Mosh but I was unable to install firebase & angularfire 2. I tried to copy the version in the video and the latest one but still it gives me error.

That post answered almost the exact same question. It is possible that you would have to use newer dependencies at this point since that code is getting very old. What version of Angular have you been using?