代码之家  ›  专栏  ›  技术社区  ›  Askar

为“RejectDB”运行“feathers generate authentication”时出错`

  •  0
  • Askar  · 技术社区  · 7 年前

    我跑步时有问题 feathers generate authentication rethinkdb 作为数据库。

    • Mac OS X Sierra
    • 羽毛2.2.3
    • 重新思考DB 2.3.5

    复制步骤:

    1. 我已经起床跑步了 https://github.com/tenzan/feathers-chat.git
    2. 羽毛生成身份验证
    3. 选择 Username + Password (Local)
    4. 这是什么服务?(使用箭头键)重新定义DB<--进来

    输出:

    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电脑上犯了相同的错误。

    1 回复  |  直到 7 年前
        1
  •  1
  •   hrmny    7 年前

    这是一个问题 generator-feathers

    移除 rethinkdb 对象来自 config/default

    编辑:固定