Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error: Cannot find module 'mysql' #21

Open
mariushosting opened this issue Nov 1, 2023 · 13 comments
Open

[BUG] Error: Cannot find module 'mysql' #21

mariushosting opened this issue Nov 1, 2023 · 13 comments

Comments

@mariushosting
Copy link

mariushosting commented Nov 1, 2023

@naskio The latest STRAPI 4.15.0 container give back the following error message when install it:

Error: Cannot find module 'mysql'

[2023-11-01 11:29:40.969] debug: ⛔️ Server wasn't able to start properly.
[2023-11-01 11:29:40.971] error: Knex: run
$ npm install mysql --save
Cannot find module 'mysql'

@Greatz08
Copy link

Greatz08 commented Nov 8, 2023

same error i am getting

@mariushosting
Copy link
Author

version 4.15.2 is out but the issue persist with every Database client env variable, mysql, postgres even sqlite is not working. I hope @naskio can look into this issue since this image is not working anymore.

@lazyest
Copy link

lazyest commented Nov 11, 2023

+1

@naskio
Copy link
Owner

naskio commented Nov 11, 2023

Hi guys,
Maybe we can use an older version until we find a fix😬.

@doasare
Copy link

doasare commented Nov 12, 2023

which version is good?

@mariushosting
Copy link
Author

which version is good?

Release 4.12.1

@AmandineTournay
Copy link

AmandineTournay commented Nov 21, 2023

Hello there,
I got the same problem with (Cannot find module 'pg') the Docker image and without (I cannot authenticate to the database due to a problem with environment variables) since 4.15 too.
I returned to 4.14.4 with the Docker image, and everything works well.

I just saw that Strapi has shared some news about the latest problems here:
Notice: Stability and changes to our release process (v4.15.x through 2023)

@ancashoria
Copy link

hey, I'm getting something similar:

Cannot find module 'pg'

I was hoping v4.16.2 would fix this, but it looks like that's not the case.
Does anyone have more info about this?

@iNorthSea
Copy link

我也遇到相对应的问题,找不到解决方案

@doasare
Copy link

doasare commented Jan 3, 2024

Hey I have a working version here using latest strapi. You would need to copy entire repo but you are more than welcome creating your own image and publishing it somewhere remove -

https://github.com/doasare/docker-strapi/blob/main/README.md

@DylanBorchert
Copy link

+1 for this issue

Reverting back to 1.14 works fine for now

@DeDelner
Copy link

Another +1

Version 1.14.5 seems to be the last (most) stable version

@mariushosting
Copy link
Author

Hi guys, Maybe we can use an older version until we find a fix😬.

Any fix until today? 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants