ERROR: Please install mysql2 package manually
So I finally figured out the bug. The issue appears to come from when you are calling the migration from global install of sequelize-cli instead of the locally installed version of sequelize in my project. All I had to do was call the script form the node modules folder and it worked perfectly. I was calling the command this way sequelize db:migrate
when I needed to call the local installed package this way node_modules/.bin/sequelize db:migrate
i installed mysql2 package globally out of my project folder using :
npm install mysql2 -g
List your global npm packages
npm list -g --depth 0
Uninstall
sequelize
npm uninstall -g sequelize
Install
sequelize
in project scopenpm install --save sequelize
This one worked for me
npm install mysql2 --save