【问题标题】:sails­postgresql Error while using sails lift command?使用sails lift 命令时出现sailspostgresql 错误?
【发布时间】:2015-05-09 12:41:59
【问题描述】:

在运行 $sails lift 命令时,我收到此错误。

info: Starting app...

error: Trying to use unknown adapter, "sails­postgresql", in model `adminintro`.
error: Are you sure that adapter is installed in this Sails app?
error: If you wrote a custom adapter with identity="sails­postgresql", it   should be in this app's adapters directory.
error: Otherwise, if you're trying to use an adapter named `sails­postgresql`, please run `npm install sails-sails­postgresql@0.10.x`

请大家帮帮我...

【问题讨论】:

    标签: postgresql sails.js sails-postgresql


    【解决方案1】:

    得到答案...这是 unicode 错误。我已经从我同事的一个 pdf 文件中复制并粘贴了 local.js 的代码。因此,当我将该代码粘贴到我的 local.js 中时,“-”被替换为一些 unicode http://www.fileformat.info/info/unicode/char/00AD/index.htm .. 这就是导致此问题的原因..

    【讨论】:

      猜你喜欢
      • 2014-12-08
      • 1970-01-01
      • 1970-01-01
      • 2017-01-05
      • 1970-01-01
      • 2014-03-18
      • 2016-05-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多