[英]Sequelize migration dialect error - MYSQL
when i use "sequelize db:migrate" command. 当我使用“ sequelize db:migrate”命令时。 I got following error! 我收到以下错误!
Sequelize CLI [Node: 8.9.1, CLI: 3.2.0, ORM: 4.29.0] Sequelize CLI [节点:8.9.1,CLI:3.2.0,ORM:4.29.0]
WARNING: This version of Sequelize CLI is not fully compatible with Sequelize v4. 警告:此版本的Sequelize CLI与Sequelize v4不完全兼容。 https://github.com/sequelize/cli#sequelize-support https://github.com/sequelize/cli#sequelize-support
Loaded configuration file "config\\config.js". 加载的配置文件“ config \\ config.js”。
ERROR: Dialect needs to be explicitly supplied as of v4.0.0 错误:从v4.0.0起需要明确提供方言
my code link --> code github link 我的代码链接-> 代码github链接
i tried everything i have got! 我尝试了一切! I can't get any solution! 我找不到任何解决方案!
I have configured the github code and tried with diff node versions and its working all good : 我已经配置了github代码并尝试了diff节点版本,并且一切正常:
OS : Ubuntu 16.04 LTS 操作系统:Ubuntu 16.04 LTS
Sequelize [Node: 9.2.0, CLI: 2.8.0, ORM: 4.29.0]
CLI version 3.9.1
Sequelize [Node: 8.9.1, CLI: 2.8.0, ORM: 4.29.0]
CLI version 3.9.1
Sequelize [Node: 6.11.2, CLI: 2.8.0, ORM: 4.29.0]
CLI version 3.9.1
The issue is might be with your OS or npm install --save mysql2
installation. 问题可能出在您的操作系统或npm install --save mysql2
安装上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.