2

运行 $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`

请大家帮帮我...

4

1 回答 1

2

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

于 2015-05-09T13:14:30.963 回答