2016-06-19 8 views
0

私はキーストーンのデフォルトのインストールを実行したと私は見ている私のブラウザでは、私自身のMongoDBkeystone.jsをインストールして実行した後にこのエラーが発生する原因は何ですか?

に接続している以外のファイルのいずれかの変更やりなさい:

は申し訳ありませんが、エラーが(ページのロードが発生します500)

パスは文字列でなければなりません。受信[「テンプレート」、「テンプレート/ビュー」]

` 
zerp:keystone-yo asdf$ nodemon 
[nodemon] 1.9.2 
[nodemon] to restart at any time, enter `rs` 
[nodemon] watching: *.* 
[nodemon] starting `node keystone.js` 

------------------------------------------------ 
KeystoneJS Started: 
keystone is ready on port 3000 
------------------------------------------------ 

Error thrown for request:/
TypeError: Path must be a string. Received [ 'templates', 'templates/views' ] 
    at assertPath (path.js:7:11) 
    at Object.relative (path.js:1228:5) 
    at ExpressHandlebars.renderView (/Users/asdf/Desktop/keystone-yo/node_modules/express-handlebars/lib/express-handlebars.js:192:43) 
    at View.render (/Users/asdf/Desktop/keystone-yo/node_modules/express/lib/view.js:126:8) 
    at tryRender (/Users/asdf/Desktop/keystone-yo/node_modules/express/lib/application.js:639:10) 
    at EventEmitter.render (/Users/asdf/Desktop/keystone-yo/node_modules/express/lib/application.js:591:3) 
    at ServerResponse.render (/Users/asdf/Desktop/keystone-yo/node_modules/express/lib/response.js:960:7) 
    at View.<anonymous> (/Users/asdf/Desktop/keystone-yo/node_modules/keystone/lib/view.js:337:13) 
    at /Users/asdf/Desktop/keystone-yo/node_modules/keystone/lib/view.js:372:3 
    at /Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:52:16 
    at /Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:269:32 
    at /Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:44:16 
    at /Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:726:13 
    at /Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:52:16 
    at async.forEachOf.async.eachOf (/Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:236:30) 
    at _parallel (/Users/asdf/Desktop/keystone-yo/node_modules/async/lib/async.js:717:9) 
GET/500 12.613 m` 
+0

は、タグ同義語です。どこにでも追加する必要はありません。 – Drew

+0

@drewはい、それは我々が同義語のタグを追加するw00t @ – w00t

+0

:-)それsynonymNは作るために票を必要とそうではなかったが不要であり、それはアクティブのトップに格上げ取得する質問を引き起こし、ユーザーは「訴え」それ以外のところでは、私はあなたに知らせるように感じました – Drew

答えて

1

私が見つけた問題はkeystone.jsメソッド内keystone.init()がするのではなく、文字列を期待してアレイされていることです。 'views': ['templates', 'templates/views'],という行を'views': 'templates/views',に変更します。これで問題が解決されることを願っています。 w00t `keystonejs` @

関連する問題