为"RethinkDB"运行"羽毛生成身份验证"时出错



我在运行feathers generate authentication时选择rethinkdb作为数据库时遇到问题。

环境:

  • Mac OS X Sierra
  • 羽毛 2.2.3
  • npm 5.1.0
  • 重新思考数据库 2.3.5

重现步骤:

  1. 我已启动并运行 https://github.com/tenzan/feathers-chat.git
  2. feathers generate authentication
  3. 选择Username + Password (Local)
  4. 用户(实体(服务的名称是什么?(用户( <-- 输入
  5. 它是什么服务?(使用箭头键( ❯ 重新思考数据库 <-- 输入

输出:

events.js:182
throw er; // Unhandled 'error' event
^
TypeError: Parameter "url" must be a string, not object
at Url.parse (url.js:102:11)
at Object.urlParse [as parse] (url.js:96:5)
at ConnectionGenerator._getConfiguration (/usr/local/lib/node_modules/feathers-cli/node_modules/generator-feathers/generators/connection/index.js:46:24)
at ConnectionGenerator._writeConfiguration (/usr/local/lib/node_modules/feathers-cli/node_modules/generator-feathers/generators/connection/index.js:103:32)
at ConnectionGenerator.writing (/usr/local/lib/node_modules/feathers-cli/node_modules/generator-feathers/generators/connection/index.js:297:10)
at Object.<anonymous> (/usr/local/lib/node_modules/feathers-cli/node_modules/yeoman-generator/lib/index.js:417:23)
at /usr/local/lib/node_modules/feathers-cli/node_modules/run-async/index.js:25:25
at Promise (<anonymous>)
at /usr/local/lib/node_modules/feathers-cli/node_modules/run-async/index.js:24:19
at /usr/local/lib/node_modules/feathers-cli/node_modules/yeoman-generator/lib/index.js:418:9

我在具有相同环境的不同Mac PC上遇到了相同的错误。

这是generator-feathers的问题

config/default中删除rethinkdb对象

看看我是否可以解决主要问题

编辑:固定

相关内容

最新更新