Node.js Sequelize 依赖问题
我正在使用带有sequelize库(1.0.2)的node.js(0.4.7)。 npm 设置依赖项,以便
─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
但是,node.js 给出了一个错误
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: deprecated: use mysql.createClient() instead
at new Client (/node_modules/sequelize/node_modules/mysql/lib/client.js:12:11)
,我用 google 搜索它,我刚刚发现: https://github.com/sdepold/sequelize/issues/89 这并不能解决我的问题。这显然是一个依赖性问题。你们中有人以前遇到过这个问题吗?知道如何解决吗?
Node.js 在 ARM 处理器上的 Ubuntu 9.04 上运行。
先感谢您。
I am working with node.js (0.4.7) with sequelize library (1.0.2). npm set the dependencies so that
─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
However, the node.js gives an error
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: deprecated: use mysql.createClient() instead
at new Client (/node_modules/sequelize/node_modules/mysql/lib/client.js:12:11)
I googled it and I just found: https://github.com/sdepold/sequelize/issues/89 which does not solve my problem. It is an apparently dependency problem. Does anyone of you have faced this problem before? Any idea how to solve it?
Node.js is running on a Ubuntu 9.04 on an ARM processor.
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我刚刚发布了 v1.1.0,它支持node-mysql 0.9.4。请尝试一下并告诉我它是否适合您。
OK, I just released v1.1.0 which supports node-mysql 0.9.4. Please give it a try and tell me if it works nicely for you.