sailspostgresql使用sails lift命令时出错?

时间:2021-11-08 19:09:54

While running $ sails lift command , I am getting this error.

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

Please help me out guys ...

请帮帮我们......

1 个解决方案

#1


Got the answer ... It was unicode mistake . I have copy n pasted the code for local.js from one of my coworker's pdf file. So when I pasted that code in my local.js "-" was replaced with some unicode http://www.fileformat.info/info/unicode/char/00AD/index.htm .. and that was causing this issue..

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

#1


Got the answer ... It was unicode mistake . I have copy n pasted the code for local.js from one of my coworker's pdf file. So when I pasted that code in my local.js "-" was replaced with some unicode http://www.fileformat.info/info/unicode/char/00AD/index.htm .. and that was causing this issue..

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