2017-06-29 1 views
0

FeathersJSを試しているうちに、ドキュメントに続いて2つのサービスを作成しようとしました。最初のものはxと呼ばれ、もう1つはyと呼ばれます。knex postgresでFeathersJSサービスを作成するには

私は

~/r/feathers-chat ❯❯❯ feathers generate service 
? What kind of service is it? KnexJS 
? What is the name of the service? x 
? Which path should the service be registered on? /x 
? Which database are you connecting to? PostgreSQL 
? What is the database connection string? 
    postgres://user:[email protected]:5432/feathers_chat 

すべてが完璧に動作してXを作成します。

私はY

~/r/feathers-chat ❯❯❯ feathers generate service 
? What kind of service is it? KnexJS 
? What is the name of the service? y 
? Which path should the service be registered on? /y 
? Which database are you connecting to? PostgreSQL 

次のエラーがスローされますを作成します。

events.js:160 
    throw er; // Unhandled 'error' event 
^

TypeError: Parameter "url" must be a string, not object 
at Url.parse (url.js:88:11) 
at Object.urlParse [as parse] (url.js:82:5) 
at ConnectionGenerator._getConfiguration (/Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/generator-feathers/generators/connection/index.js:46:24) 
at ConnectionGenerator._writeConfiguration (/Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/generator-feathers/generators/connection/index.js:103:32) 
at ConnectionGenerator.writing (/Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/generator-feathers/generators/connection/index.js:293:10) 
at Object.<anonymous> (/Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/yeoman-generator/lib/index.js:417:23) 
at /Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/run-async/index.js:25:25 
at /Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/run-async/index.js:24:19 
at /Users/user/.nvm/versions/node/v6.10.2/lib/node_modules/feathers-cli/node_modules/yeoman-generator/lib/index.js:418:9 
at runCallback (timers.js:666:20) 

に思えることfeathersJSクライアントがクラッシュしたときにそこにDefault.jsので

私は手の前に、接続を作成する場合に定義されたPostgresの接続、まったく同じで最初のサービスを作成するときにクライアントがクラッシュしましたエラー。

私は間違って何をしているのか分かりませんが、同じpostgresデータベースを使用してこの2番目のサービスを作成することについての助けに感謝します!

答えて

0

[email protected]にバグがあります。バージョン2.1.1をアンインストールしてインストールしましたが、これ以上問題はありませんでした。このエラーを通知します。

関連する問題