feathers generate authentication
选择rethinkdb
作为数据库运行时遇到问题。
环境:
- Mac OS X 塞拉利昂
- 羽毛2.2.3
- npm 5.1.0
- 重新思考数据库 2.3.5
重现步骤:
- 我已经启动并运行https://github.com/tenzan/feathers-chat.git
feathers generate authentication
- 选择
Username + Password (Local)
- 用户(实体)服务的名称是什么?(用户) <-- 输入
- 它是一种什么样的服务?(使用箭头键)❯ RethinkDB <-- Enter
输出:
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 上遇到了相同的错误。