0
無法在我的sails應用程序上使用Postgresql運行我的應用程序。無法使用Postgresql運行我的Sails.js應用程序
我在本地服務器上運行postgresql。
您知道如何解決以下錯誤嗎?我已經嘗試在node_modules/sails-postgresql/lib/adapter.js:372:10中記錄數據存儲區的值,並且數據存儲區實際上是未定義的。
error: A hook (
orm
) failed to load!
error: Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not rundescribe
due to 1 validation error:
•datastore
is a required input- but it was not defined.
我在我的配置文件夾中定義了下面的postgres連接。
module.exports.connections = {
postgres: {
adapter: 'sails-postgresql',
host: 'localhost',
user: 'postgres',
password: '',
database: 'databasename'
}
}
節點版本:v6.8.0添
帆版本:0.12.7
帆,PostgreSQL的版本:1.0.0-9