![](/img/trans.png)
[英]Node.js puppeteer errors DeprecationWarning and UnhandledPromiseRejectionWarning
[英]Node.js (node:12276) [SEQUELIZE0004] DeprecationWarning
我在尝试运行nodemon app.js
socialboard-api/user 时出现以下错误
[nodemon] 1.19.3
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node app.js`
(node:1220) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.
我使用了 PowerShell 和 CMD 但仍然有同样的问题
从续集文档:
运算符别名
Sequelize 允许将特定字符串设置为运算符的别名。 使用 v5,这将为您提供弃用警告。
您应该在v4
的config.json
中设置"operatorsAliases": false
并且在v5+
中根本不设置它,因为默认情况下它是 false
如果这与 socialboard-api/user 安装有关..
您应该编辑此配置文件并根据错误注释值““operatorsAliases”:false,“ This is a no-op with v5 and should be removed
正如您从错误中看到的那样,它只是一个警告......这不会停止您的应用程序,但您需要解决它。
当我尝试使用 MySQL 渲染表格时,我遇到了类似的问题。 我可以通过在我的 config.json 文件中添加密码来解决我的问题。 您是否使用 MySQL 或其他可能需要您输入密码的东西?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.