sequelize / sequelize

Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
https://sequelize.org/
MIT License
29.47k stars 4.27k forks source link

Mysql2 has been installed, and even globally installed Mysql2 , it still has an error:Error: Please install mysql2 package manually #17408

Closed limingxxoo closed 3 months ago

limingxxoo commented 3 months ago

Here's the version I installed 屏幕截图 2024-07-03 174031 屏幕截图 2024-07-03 180159 屏幕截图 2024-07-03 180249

Here's mysql2 that I installed globally. Sequelize is also not installed globally 屏幕截图 2024-07-03 174152

Report under the next.js:Error: Please install mysql2 package manually 屏幕截图 2024-07-03 174108

However, under sequelize-cli, it is possible to connect to mysql 屏幕截图 2024-07-03 180029

limingxxoo commented 3 months ago

Pls how to solve this problem? thanks