2017-07-11 57 views
0

我在運行feathers generate authentication時選擇rethinkdb作爲數據庫時遇到問題。爲`RethinkDB`運行羽毛生成認證時出錯

環境:

  • 的Mac OS X塞拉利昂
  • 羽毛2.2.3
  • NPM 5.1.0
  • rethinkdb 2.3.5

重現步驟:

  1. 我已經啓動並運行https://github.com/tenzan/feathers-chat.git
  2. feathers generate authentication
  3. 選擇Username + Password (Local)
  4. 什麼是用戶(實體)服務的名稱? (用戶)< - 輸入
  5. 它是什麼樣的服務? (使用箭頭鍵)❯RethinkDB < - 輸入

輸出:

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

這是一個與generator-feathers

問題來自config/default

取出rethinkdb對象會看到,如果我能解決的主要問題

編輯:固定