Unable to resolve sequelize package

I recently decided to use a more opinionated migrations manager for a new microservice we are building on top of the loopback framework. In my opinion, loopback’s automigrate feature leaves a lot to be desired. After doing some search, we settled on Sequelize. I got started with the instructions on http://docs.sequelizejs.com/en/latest/docs/migrations/. Interestingly enough, I kept getting the following error when I tried to init the sequelize project:

Unable to resolve sequelize package in /Users/looneydoodle/…

After going through the forums and the github issues, I realized the error wasnt really in the code. It was because I had to install the sequelize package separately and it was not set as a dependency for the sequelize-cli package. So I ran npm install sequelize and we were on our merry way.