sailspostgresql使用sails lift命令时出错?

时间:2015-05-09 12:41:59

标签: postgresql sails.js sails-postgresql

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

请帮帮我们......

1 个答案:

答案 0 :(得分:2)

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