首页 > 解决方案 > 请确保 `sails-cassandra` 是有效的 Sails/Waterline 适配器

问题描述

我已经设置了一个从生产到本地机器(窗口)的风帆项目。我们正在使用sails-cassandra. 现在当我运行 **node app.js* 时。我收到以下错误

> error: A hook (`orm`) failed to load! 
error: Error: There was an error
> attempting to load `sails-cassandra`. (Sails attempted to load this
> adapter because it is referenced by a datastore
> (`someCassandraServer`) in this app's configuration) Please ensure
> that `sails-cassandra` is a valid Sails/Waterline adapter, and that it
> is installed in this app.

任何人都知道我错过了什么。我的 Cassandra 数据库设置在外部服务器上,我可以 ping 该服务器。

标签: node.jscassandrasails.js

解决方案


推荐阅读