in

Adonis JS No MYSQL Module Error Fix

adonis-mysql-error

If you guys/girls have problem installing mysql module, here is what I did to solve the problem. Error occurs when u run “adonis migration:run” it will tell you that there is no mysql module (or smth like that) and it will tell you what stacks it requires.

If you guys/girls have problem installing mysql module, here is what I did to solve the problem. Error occurs when u run “adonis migration:run” it will tell you that there is no mysql module (or smth like that) and it will tell you what stacks it requires.

Than I saw in node_modules that there is no mysql folder. First I tried “npm install mysql”, “npm install mysql –save”, also I tried “npm install mysql2” – I saw mysql2 in one of the files from node_modules so I tried that too. BUT none of that work. It just gave me empty mysql folder. Second I tried to delete node_modules folder, run again “npm install” – guess what? The same result.

Here is the solution that helped me: I deleted node_modules and run

npm install mysql

instead of only “npm install” and this installed all node modules including mysql. *Make sure you are running all these commads from terminal which has all computer permissions (like bas ubuntu) cause maybe I run into these problems working in cmder first. It’s funny that, l8tr I tried to simulate errors again so I can show u images of them but it won’t show them haha

What do you think?

Written by CodingPhase

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading…

0

Comments

0 comments

Adding Color and Styles to Console Logs

Check if an Array Contains Duplicates